From 83b820aa98931ef30fa73c72b2a96fe23885955e Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sun, 16 Jun 2002 03:56:11 +0000 Subject: [PATCH] Fix glXCopyContext bug --- src/mesa/drivers/x11/fakeglx.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c index 6c282a2a677..e7d98dd2a3d 100644 --- a/src/mesa/drivers/x11/fakeglx.c +++ b/src/mesa/drivers/x11/fakeglx.c @@ -1,4 +1,4 @@ -/* $Id: fakeglx.c,v 1.65 2002/06/13 04:49:17 brianp Exp $ */ +/* $Id: fakeglx.c,v 1.66 2002/06/16 03:56:11 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1350,8 +1350,10 @@ static void Fake_glXCopyContext( Display *dpy, GLXContext src, GLXContext dst, unsigned long mask ) { - XMesaContext xm_src = (XMesaContext) src; - XMesaContext xm_dst = (XMesaContext) dst; + struct fake_glx_context *fakeSrc = (struct fake_glx_context *) src; + struct fake_glx_context *fakeDst = (struct fake_glx_context *) dst; + XMesaContext xm_src = fakeSrc->xmesaContext; + XMesaContext xm_dst = fakeDst->xmesaContext; (void) dpy; _mesa_copy_context( xm_src->gl_ctx, xm_dst->gl_ctx, (GLuint) mask ); } -- 2.30.2