Mesa (master): gallium/xlib: fix GLX_RENDER_TYPE query

Brian Paul brianp at kemper.freedesktop.org
Thu Oct 1 12:37:19 PDT 2009


Module: Mesa
Branch: master
Commit: a6b84aef4ad3a7bac40704146a98977c62bfb6e8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a6b84aef4ad3a7bac40704146a98977c62bfb6e8

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Sep 29 12:17:11 2009 -0600

gallium/xlib: fix GLX_RENDER_TYPE query

Return GLX_RGBA_TYPE or GLX_COLOR_INDEX_TYPE.

---

 src/gallium/state_trackers/glx/xlib/glx_api.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gallium/state_trackers/glx/xlib/glx_api.c b/src/gallium/state_trackers/glx/xlib/glx_api.c
index d1a98f8..65012e9 100644
--- a/src/gallium/state_trackers/glx/xlib/glx_api.c
+++ b/src/gallium/state_trackers/glx/xlib/glx_api.c
@@ -1538,9 +1538,9 @@ get_config( XMesaVisual xmvis, int attrib, int *value, GLboolean fbconfig )
          if (!fbconfig)
             return GLX_BAD_ATTRIBUTE;
          if (xmvis->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_X_RENDERABLE_SGIX:
          if (!fbconfig)
@@ -2120,9 +2120,9 @@ 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;



More information about the mesa-commit mailing list