aboutsummaryrefslogtreecommitdiffstats
path: root/src/runtimerender/qssgrhicustommaterialsystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtimerender/qssgrhicustommaterialsystem.cpp')
-rw-r--r--src/runtimerender/qssgrhicustommaterialsystem.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtimerender/qssgrhicustommaterialsystem.cpp b/src/runtimerender/qssgrhicustommaterialsystem.cpp
index 2e873f80..cb372ec4 100644
--- a/src/runtimerender/qssgrhicustommaterialsystem.cpp
+++ b/src/runtimerender/qssgrhicustommaterialsystem.cpp
@@ -468,6 +468,7 @@ void QSSGCustomMaterialSystem::rhiPrepareRenderable(QSSGRhiGraphicsPipelineState
bool srbChanged = false;
if (!srb || bindings != dcd.bindings) {
srb = rhiCtx->srb(bindings);
+ rhiCtx->releaseCachedSrb(dcd.bindings);
dcd.bindings = bindings;
srbChanged = true;
}