projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
584b087
)
gallium/xlib: use bitwise-and to test GLX_RGBA_BIT in choose_visual()
author
Brian Paul
<brianp@vmware.com>
Fri, 2 Oct 2009 13:52:27 +0000
(07:52 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 2 Oct 2009 13:52:29 +0000
(07:52 -0600)
The parameter is a bitmask.
src/gallium/state_trackers/glx/xlib/glx_api.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/glx/xlib/glx_api.c
b/src/gallium/state_trackers/glx/xlib/glx_api.c
index 7f04db2186e6d3035e782e558225525a3c1ff7e4..6cd7ede31cf7f1c3e4e26498c978b04f23e016b3 100644
(file)
--- a/
src/gallium/state_trackers/glx/xlib/glx_api.c
+++ b/
src/gallium/state_trackers/glx/xlib/glx_api.c
@@
-850,10
+850,10
@@
choose_visual( Display *dpy, int screen, const int *list, GLboolean fbConfig )
if (!fbConfig)
return NULL;
parselist++;
- if (*parselist
==
GLX_RGBA_BIT) {
+ if (*parselist
&
GLX_RGBA_BIT) {
rgb_flag = GL_TRUE;
}
- else if (*parselist
==
GLX_COLOR_INDEX_BIT) {
+ else if (*parselist
&
GLX_COLOR_INDEX_BIT) {
rgb_flag = GL_FALSE;
}
else if (*parselist == 0) {