mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 18:30:42 +02:00
gallium/xlib: Fix an obvious thinko
x == !GLX_DIRECT_COLOR is a fancy way of writing x == 0, which is clearly not what was meant.
This commit is contained in:
parent
9173459b95
commit
04bef9a0a6
1 changed files with 1 additions and 1 deletions
|
|
@ -661,7 +661,7 @@ initialize_visual_and_buffer(XMesaVisual v, XMesaBuffer b,
|
|||
* We support RGB rendering into almost any kind of visual.
|
||||
*/
|
||||
const int xclass = v->visualType;
|
||||
if (xclass != GLX_TRUE_COLOR && xclass == !GLX_DIRECT_COLOR) {
|
||||
if (xclass != GLX_TRUE_COLOR && xclass != GLX_DIRECT_COLOR) {
|
||||
_mesa_warning(NULL,
|
||||
"XMesa: RGB mode rendering not supported in given visual.\n");
|
||||
return GL_FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue