mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
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 <tapani.palli@intel.com> Cc: mesa-stable@lists.freedesktop.org Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102844 Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
db4222fc54
commit
589457d97f
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue