summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/x11/glxapi.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>1999-11-22 21:52:23 +0000
committerBrian Paul <[email protected]>1999-11-22 21:52:23 +0000
commitb82d993b03320818f88f792a9e713f7ed491bfcb (patch)
tree97b9a4838c76023836f9f95092aded196bb94a4c /src/mesa/drivers/x11/glxapi.c
parentbf3f9bdaae9f17de8ac82ec7789e4e689a6f67f2 (diff)
added glXGetCurrentDisplay() for GLX 1.2
Diffstat (limited to 'src/mesa/drivers/x11/glxapi.c')
-rw-r--r--src/mesa/drivers/x11/glxapi.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/mesa/drivers/x11/glxapi.c b/src/mesa/drivers/x11/glxapi.c
index f845b5a5bc8..d48f3151d48 100644
--- a/src/mesa/drivers/x11/glxapi.c
+++ b/src/mesa/drivers/x11/glxapi.c
@@ -1,4 +1,4 @@
-/* $Id: glxapi.c,v 1.4 1999/10/27 09:50:10 brianp Exp $ */
+/* $Id: glxapi.c,v 1.5 1999/11/22 21:52:23 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -348,6 +348,19 @@ const char *glXGetClientString( Display *dpy, int name )
+/* GLX 1.2 and later */
+Display *glXGetCurrentDisplay( void )
+{
+#ifdef REALGLX
+ if (display_has_glx(dpy))
+ return Real_glXGetCurrentDisplay();
+ else
+#endif
+ return Fake_glXGetCurrentDisplay();
+}
+
+
+
#ifdef GLX_MESA_release_buffers
Bool glXReleaseBuffersMESA( Display *dpy, Window w )
{