diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2002-06-16 03:55:27 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2002-06-16 03:55:27 +0000 |
commit | 363c8b904840b677ba1a6fae49401d7dc62a7412 (patch) | |
tree | daeae9ced220ff56551173fdb827f4841f04c648 /src | |
parent | eb7b122807233f8ee9b4a6dae6a44d22b5fc5db7 (diff) |
Fix glXCopyContext bug
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/x11/fakeglx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c index 0fdb6bbf23..d900c0c105 100644 --- a/src/mesa/drivers/x11/fakeglx.c +++ b/src/mesa/drivers/x11/fakeglx.c @@ -1341,8 +1341,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 ); } |