summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/x11/fakeglx.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-02-08 00:11:14 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-02-08 00:11:14 +0000
commit529614cd1a1e426ca7ad019795a6b72ad51cd9e6 (patch)
treee0b2882676a6ddfb738038e5ebfbcab8bf39ab61 /src/mesa/drivers/x11/fakeglx.c
parent54447772d5add50efccc5c6aa68ee1ee8e21eab6 (diff)
implement Fake_glXCreateWindow() to fix bug #890894
Diffstat (limited to 'src/mesa/drivers/x11/fakeglx.c')
-rw-r--r--src/mesa/drivers/x11/fakeglx.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c
index d8c1a7c1b4..a616915f1d 100644
--- a/src/mesa/drivers/x11/fakeglx.c
+++ b/src/mesa/drivers/x11/fakeglx.c
@@ -1959,9 +1959,16 @@ static GLXWindow
Fake_glXCreateWindow( Display *dpy, GLXFBConfig config, Window win,
const int *attribList )
{
+ XMesaVisual xmvis = (XMesaVisual) config;
+ XMesaBuffer xmbuf;
+ if (!xmvis)
+ return 0;
+
+ xmbuf = XMesaCreateWindowBuffer2(xmvis, win, NULL);
+ if (!xmbuf)
+ return 0;
+
(void) dpy;
- (void) config;
- (void) win;
(void) attribList; /* Ignored in GLX 1.3 */
return win; /* A hack for now */