summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/drivers/osmesa/osmesa.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c
index 9a7ef250a37..2edbb027d61 100644
--- a/src/mesa/drivers/osmesa/osmesa.c
+++ b/src/mesa/drivers/osmesa/osmesa.c
@@ -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;
}