Skip framebuffer configs for depth 32 with no alpha

Fixes another problem on NVIDIA that RGBA windows were rendered
incorrectly.
This commit is contained in:
Martin Gräßlin 2013-03-21 15:52:43 +01:00
parent 0c4c16e93f
commit d021bf35c1

View file

@ -259,6 +259,9 @@ bool GlxBackend::initDrawableConfigs()
if (buffer_size != depth && (buffer_size - alpha_size) != depth) if (buffer_size != depth && (buffer_size - alpha_size) != depth)
continue; continue;
if (depth == 32 && alpha_size != 8)
continue;
XVisualInfo *vi = glXGetVisualFromFBConfig(display(), configs[j]); XVisualInfo *vi = glXGetVisualFromFBConfig(display(), configs[j]);
if (vi == NULL) if (vi == NULL)
continue; continue;