osmesa: call _mesa_meta_init/free()
authorBrian Paul <brianp@vmware.com>
Mon, 21 Sep 2009 04:13:09 +0000 (22:13 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 21 Sep 2009 04:13:09 +0000 (22:13 -0600)
src/mesa/drivers/osmesa/osmesa.c

index 904659e3450b5f8a0955d0fb29274d8863f0f54b..692657a5dfd626796240b73098899e159766104c 100644 (file)
@@ -50,6 +50,7 @@
 #include "tnl/t_context.h"
 #include "tnl/t_pipeline.h"
 #include "drivers/common/driverfuncs.h"
+#include "drivers/common/meta.h"
 #include "vbo/vbo.h"
 
 
@@ -1258,6 +1259,8 @@ OSMesaCreateContextExt( GLenum format, GLint depthBits, GLint stencilBits,
       osmesa->bInd = bind;
       osmesa->aInd = aind;
 
+      _mesa_meta_init(&osmesa->mesa);
+
       /* Initialize the software rasterizer and helper modules. */
       {
         GLcontext *ctx = &osmesa->mesa;
@@ -1304,6 +1307,8 @@ OSMesaDestroyContext( OSMesaContext osmesa )
       if (osmesa->rb)
          _mesa_reference_renderbuffer(&osmesa->rb, NULL);
 
+      _mesa_meta_free( &osmesa->mesa );
+
       _swsetup_DestroyContext( &osmesa->mesa );
       _tnl_DestroyContext( &osmesa->mesa );
       _vbo_DestroyContext( &osmesa->mesa );