From b82d993b03320818f88f792a9e713f7ed491bfcb Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 22 Nov 1999 21:52:23 +0000 Subject: added glXGetCurrentDisplay() for GLX 1.2 --- src/mesa/drivers/x11/fakeglx.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/mesa/drivers/x11/fakeglx.c') diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c index 19224ffa618..aca758f6cef 100644 --- a/src/mesa/drivers/x11/fakeglx.c +++ b/src/mesa/drivers/x11/fakeglx.c @@ -1,4 +1,4 @@ -/* $Id: fakeglx.c,v 1.14 1999/11/18 15:17:01 brianp Exp $ */ +/* $Id: fakeglx.c,v 1.15 1999/11/22 21:52:23 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1485,6 +1485,18 @@ const char *Fake_glXGetClientString( Display *dpy, int name ) +/* GLX 1.2 and later */ +Display *Fake_glXGetCurrentDisplay( void ) +{ + XMesaContext xmesa = XMesaGetCurrentContext(); + if (xmesa && xmesa->xm_visual) + return xmesa->xm_visual->display; + else + return NULL; +} + + + /* * Release the depth, stencil, accum buffers attached to a GLXDrawable * (a window or pixmap) prior to destroying the GLXDrawable. -- cgit v1.2.3