mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
added some missing Default1D/2DArray texture code
This commit is contained in:
parent
88451b04e9
commit
6f47250888
1 changed files with 7 additions and 0 deletions
|
|
@ -552,6 +552,10 @@ alloc_shared_state( GLcontext *ctx )
|
|||
(*ctx->Driver.DeleteTexture)(ctx, ss->DefaultCubeMap);
|
||||
if (ss->DefaultRect)
|
||||
(*ctx->Driver.DeleteTexture)(ctx, ss->DefaultRect);
|
||||
if (ss->Default1DArray)
|
||||
(*ctx->Driver.DeleteTexture)(ctx, ss->Default1DArray);
|
||||
if (ss->Default2DArray)
|
||||
(*ctx->Driver.DeleteTexture)(ctx, ss->Default2DArray);
|
||||
if (ss)
|
||||
_mesa_free(ss);
|
||||
return GL_FALSE;
|
||||
|
|
@ -676,6 +680,9 @@ free_shared_state( GLcontext *ctx, struct gl_shared_state *ss )
|
|||
ctx->Driver.DeleteTexture(ctx, ss->Default3D);
|
||||
ctx->Driver.DeleteTexture(ctx, ss->DefaultCubeMap);
|
||||
ctx->Driver.DeleteTexture(ctx, ss->DefaultRect);
|
||||
ctx->Driver.DeleteTexture(ctx, ss->Default1DArray);
|
||||
ctx->Driver.DeleteTexture(ctx, ss->Default2DArray);
|
||||
|
||||
/* all other textures */
|
||||
_mesa_HashDeleteAll(ss->TexObjects, delete_texture_cb, ctx);
|
||||
_mesa_DeleteHashTable(ss->TexObjects);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue