Chia-I Wu wrote:
> 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?

OK, it seems weird that an FB config could support both CI and RGBA 
mode but that's what the spec seems to say.

-Brian

------------------------------------------------------------------------------
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

Reply via email to