mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 11:20:20 +01:00
mesa: delete task and mesh programs on context destroy
Reviewed-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37623>
This commit is contained in:
parent
7e0c0ba08c
commit
3b63317d93
2 changed files with 5 additions and 0 deletions
|
|
@ -1088,6 +1088,9 @@ _mesa_free_context_data(struct gl_context *ctx, bool destroy_debug_output)
|
|||
_mesa_reference_program(ctx, &ctx->FragmentProgram._Current, NULL);
|
||||
_mesa_reference_program(ctx, &ctx->FragmentProgram._TexEnvProgram, NULL);
|
||||
|
||||
_mesa_reference_program(ctx, &ctx->TaskProgram._Current, NULL);
|
||||
_mesa_reference_program(ctx, &ctx->MeshProgram._Current, NULL);
|
||||
|
||||
_mesa_reference_program(ctx, &ctx->ComputeProgram._Current, NULL);
|
||||
|
||||
_mesa_reference_vao(ctx, &ctx->Array.VAO, NULL);
|
||||
|
|
|
|||
|
|
@ -968,6 +968,8 @@ st_destroy_context(struct st_context *st)
|
|||
st_release_program(st, &st->tcp);
|
||||
st_release_program(st, &st->tep);
|
||||
st_release_program(st, &st->cp);
|
||||
st_release_program(st, &st->tp);
|
||||
st_release_program(st, &st->mp);
|
||||
|
||||
if (st->hw_select_shaders) {
|
||||
hash_table_foreach(st->hw_select_shaders, entry)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue