summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-09-29 12:16:12 -0600
committerBrian Paul <brianp@vmware.com>2009-09-29 12:16:20 -0600
commit86ee448047e4f7be722b69da5296ccafc2307145 (patch)
treec8bf2492e5547f88c0cfe269c033a6dd9fc56bfd
parentef9cd84521cbbc622c3c37af04b8d10934903ae8 (diff)
downloadexternal_mesa3d-86ee448047e4f7be722b69da5296ccafc2307145.zip
external_mesa3d-86ee448047e4f7be722b69da5296ccafc2307145.tar.gz
external_mesa3d-86ee448047e4f7be722b69da5296ccafc2307145.tar.bz2
mesa/xlib: fix GLX_RENDER_TYPE query
Return GLX_RGBA_TYPE or GLX_COLOR_INDEX_TYPE.
-rw-r--r--src/mesa/drivers/x11/fakeglx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c
index 34e0b8b..eb7c4f6 100644
--- a/src/mesa/drivers/x11/fakeglx.c
+++ b/src/mesa/drivers/x11/fakeglx.c
@@ -2477,9 +2477,9 @@ Fake_glXQueryContext( Display *dpy, GLXContext ctx, int attribute, int *value )
break;
case GLX_RENDER_TYPE:
if (xmctx->xm_visual->mesa_visual.rgbMode)
- *value = GLX_RGBA_BIT;
+ *value = GLX_RGBA_TYPE;
else
- *value = GLX_COLOR_INDEX_BIT;
+ *value = GLX_COLOR_INDEX_TYPE;
break;
case GLX_SCREEN:
*value = 0;