mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-18 12:58:22 +02:00
mesa/xlib: fix GLX_RENDER_TYPE query
Return GLX_RGBA_TYPE or GLX_COLOR_INDEX_TYPE.
This commit is contained in:
parent
ef9cd84521
commit
86ee448047
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue