mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Test null DSV in D3D12::GetRenderOutputSubresource
Prevents a crash when refreshing the overlay for am unbound Texture resource and the pipeline state does not have a bound DSV.
Related to 742e3de2 which changed the internal behaviour of FillResourceView().
This commit is contained in:
@@ -956,7 +956,7 @@ RenderOutputSubresource D3D12Replay::GetRenderOutputSubresource(ResourceId id)
|
||||
}
|
||||
}
|
||||
|
||||
if(id == rs.dsv.GetResResourceId())
|
||||
if(id == rs.dsv.GetResResourceId() && rs.dsv.GetResResourceId() != ResourceId())
|
||||
{
|
||||
FillResourceView(view, &rs.dsv);
|
||||
return RenderOutputSubresource(view.firstMip, view.firstSlice, view.numSlices);
|
||||
|
||||
Reference in New Issue
Block a user