summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/x11/glxapi.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>1999-11-25 17:37:49 +0000
committerBrian Paul <[email protected]>1999-11-25 17:37:49 +0000
commit086a151f942b2bcd8b9fbc56255e45b8c89b705e (patch)
treeaec2a29962437f7e1820dad907cc0e8a99a93312 /src/mesa/drivers/x11/glxapi.c
parentcea0e8e6700e871bb9bcb334cb75fbfbfcdfd702 (diff)
implemented glXMakeContextCurrent() and glXGetCurrentReadDrawable()
Diffstat (limited to 'src/mesa/drivers/x11/glxapi.c')
-rw-r--r--src/mesa/drivers/x11/glxapi.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/mesa/drivers/x11/glxapi.c b/src/mesa/drivers/x11/glxapi.c
index 00dfffbd938..1e12dea579e 100644
--- a/src/mesa/drivers/x11/glxapi.c
+++ b/src/mesa/drivers/x11/glxapi.c
@@ -1,4 +1,4 @@
-/* $Id: glxapi.c,v 1.6 1999/11/23 19:54:27 brianp Exp $ */
+/* $Id: glxapi.c,v 1.7 1999/11/25 17:37:49 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -476,17 +476,23 @@ GLXContext glXCreateNewContext( Display *dpy, GLXFBConfig config,
Bool glXMakeContextCurrent( Display *dpy, GLXDrawable draw, GLXDrawable read,
GLXContext ctx )
{
- (void) dpy;
- (void) draw;
- (void) read;
- (void) ctx;
- return 0;
+#ifdef REALGX
+ if (display_has_glx(dpy))
+ return Real_glXMakeContextCurrent(dpy, draw, read, ctx);
+ else
+#endif
+ return Fake_glXMakeContextCurrent(dpy, draw, read, ctx);
}
GLXDrawable glXGetCurrentReadDrawable( void )
{
- return 0;
+#ifdef REALGX
+ if (display_has_glx(dpy))
+ return Real_glXGetCurrentReadDrawable();
+ else
+#endif
+ return Fake_glXGetCurrentReadDrawable();
}