From 3ba4ea4cd15e757e1910ffa32cb654e24e2718f9 Mon Sep 17 00:00:00 2001 From: baldurk Date: Sun, 8 May 2016 19:06:47 +0200 Subject: [PATCH] Ignore NumRTVs = 0xfffffff (D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL) --- renderdoc/driver/d3d11/d3d11_context.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/renderdoc/driver/d3d11/d3d11_context.cpp b/renderdoc/driver/d3d11/d3d11_context.cpp index 5d256e6aee..86720b5e8b 100644 --- a/renderdoc/driver/d3d11/d3d11_context.cpp +++ b/renderdoc/driver/d3d11/d3d11_context.cpp @@ -1705,6 +1705,8 @@ void WrappedID3D11DeviceContext::RecordOutputMergerStats(UINT NumRTVs, ID3D11Ren } UINT NumSlots = NumRTVs + NumUAVs; + if(NumRTVs == D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL) + NumSlots = NumUAVs; RDCASSERT(NumSlots < outputs.bindslots.size()); outputs.bindslots[NumSlots] += 1; }