mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-09 15:25:38 +00:00
Don't crash if OMSetRTVs is called with no RTVs and single handle flag
This commit is contained in:
@@ -1256,9 +1256,12 @@ bool WrappedID3D12GraphicsCommandList2::Serialise_OMSetRenderTargets(
|
||||
{
|
||||
if(RTsSingleHandleToDescriptorRange)
|
||||
{
|
||||
const D3D12Descriptor *descs = GetWrapped(pRenderTargetDescriptors[0]);
|
||||
if(pRenderTargetDescriptors && NumRenderTargetDescriptors > 0)
|
||||
{
|
||||
const D3D12Descriptor *descs = GetWrapped(pRenderTargetDescriptors[0]);
|
||||
|
||||
RTVs.insert(RTVs.begin(), descs, descs + NumRenderTargetDescriptors);
|
||||
RTVs.insert(RTVs.begin(), descs, descs + NumRenderTargetDescriptors);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user