Skip to content
Commit 1939affe authored by Jose Dapena Paz's avatar Jose Dapena Paz Committed by Juan A. Suarez Romero
Browse files

mesa: do not leak ctx->Shader.ReferencedProgram references



When glUseProgram is used, references to the included shaders are
added in ctx->Shader.ReferencedProgram. But those references are not
decreased when the shader data is deallocated. Thus, those shaders
are leaked.

Explicitely remove the pending references to these shaders.

Fixes: e6506b3c ("mesa: retain gl_shader_programs after glDeleteProgram if they are in use")
Reviewed-by: default avatarTimothy Arceri <tarceri@itsqueeze.com>
(cherry picked from commit 6c61c31d)
parent 42fa7cf2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment