call _mesa_initialize_context()
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 22 Apr 2000 01:05:40 +0000 (01:05 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 22 Apr 2000 01:05:40 +0000 (01:05 +0000)
src/mesa/drivers/osmesa/osmesa.c

index 9a7ef250a3794a588df4a708b3baf741f72eb12b..2edbb027d61d058f333897944eb14873ced20c7e 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: osmesa.c,v 1.15 2000/04/04 15:14:10 brianp Exp $ */
+/* $Id: osmesa.c,v 1.16 2000/04/22 01:05:40 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -216,12 +216,12 @@ OSMesaCreateContext( GLenum format, OSMesaContext sharelist )
          return NULL;
       }
 
-      if (!gl_initialize_context_data(&osmesa->gl_ctx,
-                                      osmesa->gl_visual,
-                                      sharelist ? &sharelist->gl_ctx
-                                                : (GLcontext *) NULL,
-                                      (void *) osmesa, GL_TRUE )) {
-         gl_destroy_visual( osmesa->gl_visual );
+      if (!_mesa_initialize_context(&osmesa->gl_ctx,
+                                    osmesa->gl_visual,
+                                    sharelist ? &sharelist->gl_ctx
+                                              : (GLcontext *) NULL,
+                                    (void *) osmesa, GL_TRUE )) {
+         _mesa_destroy_visual( osmesa->gl_visual );
          FREE(osmesa);
          return NULL;
       }