summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2017-09-20 09:29:16 +0300
committerTapani Pälli <[email protected]>2017-09-21 08:10:51 +0300
commit589457d97fa8e95f227e7179e9c89a01dff495a0 (patch)
treecd62b2371337dac8219a7af19ae7b0bc754cc869 /src/mesa
parentdb4222fc542821d8a187426cdf3abe997ee0120d (diff)
mesa: free current ComputeProgram state in _mesa_free_context_data
This is already done for other programs stages, fixes a leak when using compute programs. Signed-off-by: Tapani Pälli <[email protected]> Cc: [email protected] Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102844 Reviewed-by: Timothy Arceri <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/context.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index dad3ab39f84..55a65ac2abe 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1329,6 +1329,8 @@ _mesa_free_context_data( struct gl_context *ctx )
_mesa_reference_program(ctx, &ctx->FragmentProgram._Current, NULL);
_mesa_reference_program(ctx, &ctx->FragmentProgram._TexEnvProgram, NULL);
+ _mesa_reference_program(ctx, &ctx->ComputeProgram._Current, NULL);
+
_mesa_reference_vao(ctx, &ctx->Array.VAO, NULL);
_mesa_reference_vao(ctx, &ctx->Array.DefaultVAO, NULL);