summaryrefslogtreecommitdiffstats
path: root/src/glx/glxconfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/glxconfig.c')
-rw-r--r--src/glx/glxconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/glxconfig.c b/src/glx/glxconfig.c
index 003b5c8e6ed..569d24bfac5 100644
--- a/src/glx/glxconfig.c
+++ b/src/glx/glxconfig.c
@@ -59,7 +59,7 @@ glx_config_get(struct glx_config * mode, int attribute, int *value_return)
*value_return = mode->rgbBits;
return 0;
case GLX_RGBA:
- *value_return = mode->rgbMode;
+ *value_return = !(mode->renderType & GLX_COLOR_INDEX_BIT);
return 0;
case GLX_RED_SIZE:
*value_return = mode->redBits;