projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abc12d0
)
xlib: use bitwise-and to test GLX_RGBA_BIT in choose_visual()
author
Brian Paul
<brianp@vmware.com>
Fri, 2 Oct 2009 13:51:15 +0000
(07:51 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 2 Oct 2009 13:51:19 +0000
(07:51 -0600)
The parameter is a bitmask.
src/mesa/drivers/x11/fakeglx.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/x11/fakeglx.c
b/src/mesa/drivers/x11/fakeglx.c
index eb7c4f6417c8fa3f3653a2e5cff86ec23d199a0e..6449dc88b0d435fe60c50b186ad9ad5dd948df91 100644
(file)
--- a/
src/mesa/drivers/x11/fakeglx.c
+++ b/
src/mesa/drivers/x11/fakeglx.c
@@
-1197,10
+1197,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) {