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:
parent
0c4c16e93f
commit
d021bf35c1
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue