mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-14 05:50:51 +00:00
Handle the present call being within markers
This commit is contained in:
@@ -94,9 +94,17 @@ void DisplayRendererPreview(IReplayController *renderer, uint32_t width, uint32_
|
||||
|
||||
rdcarray<DrawcallDescription> draws = renderer->GetDrawcalls();
|
||||
|
||||
if(!draws.empty() && draws.back().flags & DrawFlags::Present)
|
||||
DrawcallDescription *last = NULL;
|
||||
|
||||
if(!draws.empty())
|
||||
last = &draws.back();
|
||||
|
||||
while(last && !last->children.empty())
|
||||
last = &last->children.back();
|
||||
|
||||
if(last && last->flags & DrawFlags::Present)
|
||||
{
|
||||
ResourceId id = draws.back().copyDestination;
|
||||
ResourceId id = last->copyDestination;
|
||||
if(id != ResourceId())
|
||||
d.resourceId = id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user