Skip to content

Commit

Permalink
Hydrogent: fixed warning in HnReadRprimIdTask::Execute
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Oct 25, 2023
1 parent 93b3dd2 commit 2c8004a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Hydrogent/src/Tasks/HnReadRprimIdTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ void HnReadRprimIdTask::Execute(pxr::HdTaskContext* TaskCtx)
VERIFY_EXPR(pStagingTex);
}

// Unbind render targets from the device context since Diligent will have to do this anyway
// and will print a warning if the targets are still bound.
pCtx->SetRenderTargets(0, nullptr, nullptr, RESOURCE_STATE_TRANSITION_MODE_NONE);

CopyTextureAttribs CopyAttribs;
CopyAttribs.pSrcTexture = pMeshIdTexture;
CopyAttribs.pDstTexture = pStagingTex;
Expand Down

0 comments on commit 2c8004a

Please sign in to comment.