mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 21:08:11 +02:00
fix program delete/refcount bug
This commit is contained in:
parent
54fbd8bbd4
commit
88cdc5e23f
1 changed files with 4 additions and 1 deletions
|
|
@ -159,7 +159,9 @@ st_delete_program(GLcontext *ctx, struct gl_program *prog)
|
|||
}
|
||||
|
||||
if (stfp->bitmap_program) {
|
||||
st_delete_program(ctx, &stfp->bitmap_program->Base.Base);
|
||||
struct gl_program *prg = &stfp->bitmap_program->Base.Base;
|
||||
_mesa_reference_program(ctx, &prg, NULL);
|
||||
stfp->bitmap_program = NULL;
|
||||
}
|
||||
|
||||
st_free_translated_vertex_programs(st, stfp->vertex_programs);
|
||||
|
|
@ -169,6 +171,7 @@ st_delete_program(GLcontext *ctx, struct gl_program *prog)
|
|||
assert(0); /* problem */
|
||||
}
|
||||
|
||||
/* delete base class */
|
||||
_mesa_delete_program( ctx, prog );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue