Skip to content

Commit

Permalink
Ignore NumRTVs = 0xfffffff (D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL)
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurk committed May 8, 2016
1 parent e65af43 commit 3ba4ea4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions renderdoc/driver/d3d11/d3d11_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3ba4ea4

Please sign in to comment.