summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-08-07 16:01:34 +0000
committerBrian Paul <[email protected]>2001-08-07 16:01:34 +0000
commit5e1680ce1d8296b2182e8909856927bbeddf3b95 (patch)
tree07b0732b8837944e6193447ac56965fa77e14e6b /src/mesa
parent636fb6cae7d26b4ab453b204b305d91481e391e5 (diff)
fixed GLX context sharing bug (reported by Eric Plante)
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/x11/fakeglx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c
index 539ee838c3d..9bedf7f281b 100644
--- a/src/mesa/drivers/x11/fakeglx.c
+++ b/src/mesa/drivers/x11/fakeglx.c
@@ -1,4 +1,4 @@
-/* $Id: fakeglx.c,v 1.53 2001/05/29 23:15:07 brianp Exp $ */
+/* $Id: fakeglx.c,v 1.54 2001/08/07 16:01:34 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -1132,7 +1132,7 @@ Fake_glXCreateContext( Display *dpy, XVisualInfo *visinfo,
{
XMesaVisual glxvis;
struct fake_glx_context *glxCtx;
-
+ struct fake_glx_context *shareCtx = (struct fake_glx_context *) share_list;
glxCtx = CALLOC_STRUCT(fake_glx_context);
if (!glxCtx)
return 0;
@@ -1152,7 +1152,7 @@ Fake_glXCreateContext( Display *dpy, XVisualInfo *visinfo,
}
glxCtx->xmesaContext = XMesaCreateContext(glxvis,
- (XMesaContext) share_list);
+ shareCtx ? shareCtx->xmesaContext : NULL);
if (!glxCtx->xmesaContext) {
FREE(glxCtx);
return NULL;