Skip to content

Commit

Permalink
Make sure to mark input layouts as referenced now they separate records
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurk committed May 8, 2016
1 parent e5357d5 commit e65af43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions renderdoc/driver/d3d11/d3d11_renderstate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ void D3D11RenderState::MarkDirty(D3D11ResourceManager *manager) const

void D3D11RenderState::MarkReferenced(WrappedID3D11DeviceContext *ctx, bool initial) const
{
ctx->MarkResourceReferenced(GetIDForResource(IA.Layout), initial ? eFrameRef_Unknown : eFrameRef_Read);

ctx->MarkResourceReferenced(GetIDForResource(IA.IndexBuffer), initial ? eFrameRef_Unknown : eFrameRef_Read);

for(UINT i=0; i < D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT; i++)
Expand Down

0 comments on commit e65af43

Please sign in to comment.