From 104052abd090ce8b1f1df6523473264ced06e262 Mon Sep 17 00:00:00 2001 From: Carbene Hu Date: Tue, 7 Jan 2025 18:03:38 +0800 Subject: [PATCH] Fix rasterization memory leak. (#459) --- 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); }