On Thu, Oct 01, 2009 at 12:37:19PM -0700, Brian Paul wrote: > 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) While glXQueryContext(GLX_RENDER_TYPE) returns the type, glXGetFBConfigAttrib(GLX_RENDER_TYPE) should return the bitmasks. Maybe this hunk should be reverted? > @@ -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;
-- Regards, olv ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Mesa3d-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
