projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
glx: Eliminate glx_config::{rgb,float,colorIndex}Mode
[mesa.git]
/
src
/
glx
/
glxconfig.c
diff --git
a/src/glx/glxconfig.c
b/src/glx/glxconfig.c
index 003b5c8e6edc0146d2e5aa94339e8616dedb7372..569d24bfac56b6de0f8ca366c3c2e2167545cad9 100644
(file)
--- 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;