aboutsummaryrefslogtreecommitdiffstats
path: root/src/runtimerender/qssgrhiparticles.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtimerender/qssgrhiparticles.cpp')
-rw-r--r--src/runtimerender/qssgrhiparticles.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtimerender/qssgrhiparticles.cpp b/src/runtimerender/qssgrhiparticles.cpp
index f84b00ba..f121f35e 100644
--- a/src/runtimerender/qssgrhiparticles.cpp
+++ b/src/runtimerender/qssgrhiparticles.cpp
@@ -490,6 +490,7 @@ void QSSGParticleRenderer::rhiPrepareRenderable(QSSGRhiShaderPipeline &shaderPip
bool srbChanged = false;
if (!srb || bindings != dcd.bindings) {
srb = rhiCtx->srb(bindings);
+ rhiCtx->releaseCachedSrb(dcd.bindings);
dcd.bindings = bindings;
srbChanged = true;
}