summaryrefslogtreecommitdiff
path: root/src/renderergl2
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2013-04-10 23:21:40 -0500
committerTim Angus <tim@ngus.net>2013-05-03 16:10:49 +0100
commitae81fe14ee651a15a1ac48b137181656e6d781ea (patch)
tree7bb02bbc538764c1e36a97788a4e389118224f5a /src/renderergl2
parent41db0dd2e8c3ceabab3211f2708a4cadfb38ff36 (diff)
Fix zone memory leak in OpenGL2 renderer
meminfo command showed the dynamic renderer zone amount going up by 1824 bytes each time I reloaded map using map command.
Diffstat (limited to 'src/renderergl2')
-rw-r--r--src/renderergl2/tr_glsl.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/renderergl2/tr_glsl.c b/src/renderergl2/tr_glsl.c
index 7b9b180c..93b78a1a 100644
--- a/src/renderergl2/tr_glsl.c
+++ b/src/renderergl2/tr_glsl.c
@@ -1408,10 +1408,18 @@ void GLSL_ShutdownGPUShaders(void)
GLSL_DeleteGPUShader(&tr.shadowmapShader);
GLSL_DeleteGPUShader(&tr.pshadowShader);
GLSL_DeleteGPUShader(&tr.down4xShader);
-
+ GLSL_DeleteGPUShader(&tr.bokehShader);
+ GLSL_DeleteGPUShader(&tr.tonemapShader);
+
for ( i = 0; i < 2; i++)
GLSL_DeleteGPUShader(&tr.calclevels4xShader[i]);
+ GLSL_DeleteGPUShader(&tr.shadowmaskShader);
+ GLSL_DeleteGPUShader(&tr.ssaoShader);
+
+ for ( i = 0; i < 2; i++)
+ GLSL_DeleteGPUShader(&tr.depthBlurShader[i]);
+
glState.currentProgram = 0;
qglUseProgramObjectARB(0);
}