From 33477f758b9282af2fb6e98db555930f395fc6ac Mon Sep 17 00:00:00 2001 From: Carbene Hu Date: Tue, 7 Jan 2025 19:21:09 +0800 Subject: [PATCH] Fix rasterization memory leak. (#459) (#461) --- Source/Falcor/Core/State/GraphicsState.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Falcor/Core/State/GraphicsState.cpp b/Source/Falcor/Core/State/GraphicsState.cpp index 7c5c5f039..fa8e76c06 100644 --- a/Source/Falcor/Core/State/GraphicsState.cpp +++ b/Source/Falcor/Core/State/GraphicsState.cpp @@ -110,6 +110,7 @@ ref GraphicsState::getGSO(const ProgramVars* pVars) else { pGso = mpDevice->createGraphicsStateObject(mDesc); + mDesc = pGso->getDesc(); pGso->breakStrongReferenceToDevice(); mpGsoGraph->setCurrentNodeData(pGso); }