added some missing Default1D/2DArray texture code
authorBrian <brian.paul@tungstengraphics.com>
Mon, 13 Aug 2007 10:09:48 +0000 (11:09 +0100)
committerBrian <brian.paul@tungstengraphics.com>
Mon, 13 Aug 2007 10:10:32 +0000 (11:10 +0100)
src/mesa/main/context.c

index 00e4c8328e559edc2047de55d091f5a9ca1332f0..6fa32b320a94f31a61f8294dc1a857b6527f332f 100644 (file)
@@ -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);