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.
This commit is contained in:
Zack Middleton 2013-04-10 23:21:40 -05:00
parent 230af8c9e9
commit 319df2d4d7

View file

@ -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);
}