diff options
author | Tapani Pälli <[email protected]> | 2017-09-20 09:29:16 +0300 |
---|---|---|
committer | Juan A. Suarez Romero <[email protected]> | 2017-09-21 09:29:27 +0200 |
commit | 6dc71ce3cc0a7a737566a80ab337a4e39ce6abe1 (patch) | |
tree | 5b708bb1adb19aa8271a501fe2f0a002f0041426 | |
parent | b92a4dff92e7543f97df5d3e02bdb06d8d04a153 (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]>
(cherry picked from commit 589457d97fa8e95f227e7179e9c89a01dff495a0)
-rw-r--r-- | src/mesa/main/context.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 77e11d2091e..3651f1f18df 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1312,6 +1312,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); |