Skip to content

Commit

Permalink
Fix rasterization memory leak. (#459) (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyiker authored Jan 7, 2025
1 parent 9dc819c commit 33477f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/Falcor/Core/State/GraphicsState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ ref<GraphicsStateObject> GraphicsState::getGSO(const ProgramVars* pVars)
else
{
pGso = mpDevice->createGraphicsStateObject(mDesc);
mDesc = pGso->getDesc();
pGso->breakStrongReferenceToDevice();
mpGsoGraph->setCurrentNodeData(pGso);
}
Expand Down

0 comments on commit 33477f7

Please sign in to comment.