mesa: free meta bitmap buffers
authorBrian Paul <brianp@vmware.com>
Fri, 4 Sep 2009 03:36:59 +0000 (21:36 -0600)
committerBrian Paul <brianp@vmware.com>
Sun, 6 Sep 2009 15:37:29 +0000 (09:37 -0600)
src/mesa/drivers/common/meta.c

index 10b3516fbd7cfc15f457c7035c163b793bcaecdb..1010d6a6836c61a8718d33ef8d570a37c77562ad 100644 (file)
@@ -276,6 +276,10 @@ _mesa_meta_free(GLcontext *ctx)
       _mesa_DeleteVertexArraysAPPLE(1, &meta->DrawPix.ArrayObj);
       _mesa_DeletePrograms(1, &meta->DrawPix.DepthFP);
       _mesa_DeletePrograms(1, &meta->DrawPix.StencilFP);
+
+      /* glBitmap */
+      _mesa_DeleteBuffersARB(1, & meta->Bitmap.VBO);
+      _mesa_DeleteVertexArraysAPPLE(1, &meta->Bitmap.ArrayObj);
    }
 
    _mesa_free(ctx->Meta);