Skip to content

Commit 33477f7

Browse files
authored
Fix rasterization memory leak. (#459) (#461)
1 parent 9dc819c commit 33477f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/Falcor/Core/State/GraphicsState.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ ref<GraphicsStateObject> GraphicsState::getGSO(const ProgramVars* pVars)
110110
else
111111
{
112112
pGso = mpDevice->createGraphicsStateObject(mDesc);
113+
mDesc = pGso->getDesc();
113114
pGso->breakStrongReferenceToDevice();
114115
mpGsoGraph->setCurrentNodeData(pGso);
115116
}

0 commit comments

Comments
 (0)