summaryrefslogtreecommitdiffstats
path: root/src/glx/glxconfig.c
diff options
context:
space:
mode:
authorAdam Jackson <[email protected]>2019-08-14 13:06:37 -0400
committerAdam Jackson <[email protected]>2019-08-20 14:05:07 -0400
commitb2839193987ff20438a52d124001f3b310c32315 (patch)
tree20dec40484f7d3019e9e282aa95ea9c4b792e79a /src/glx/glxconfig.c
parent74ca87e4bce2b5f06c017c5376178f3f2dfee90f (diff)
glx: Eliminate glx_config::{rgb,float,colorIndex}Mode
These are redundant with glx_config::renderType, let's just use that consistently.
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;