mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2025-01-18 13:41:37 +00:00
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:
parent
230af8c9e9
commit
319df2d4d7
1 changed files with 9 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue