diff options
-rw-r--r-- | src/mesa/main/shaderapi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index c057178bfa9..99eb2dc00e2 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -164,6 +164,8 @@ _mesa_free_shader_state(struct gl_context *ctx) _mesa_reference_shader_program(ctx, &ctx->Shader.ReferencedPrograms[i], NULL); + free(ctx->SubroutineIndex[i].IndexPtr); + ctx->SubroutineIndex[i].IndexPtr = NULL; } _mesa_reference_shader_program(ctx, &ctx->Shader.ActiveProgram, NULL); |