From d021bf35c11232c64b734ad23f158177dd5d6748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 21 Mar 2013 15:52:43 +0100 Subject: [PATCH] Skip framebuffer configs for depth 32 with no alpha Fixes another problem on NVIDIA that RGBA windows were rendered incorrectly. --- glxbackend.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/glxbackend.cpp b/glxbackend.cpp index e062b5033d..407c014581 100644 --- a/glxbackend.cpp +++ b/glxbackend.cpp @@ -259,6 +259,9 @@ bool GlxBackend::initDrawableConfigs() if (buffer_size != depth && (buffer_size - alpha_size) != depth) continue; + if (depth == 32 && alpha_size != 8) + continue; + XVisualInfo *vi = glXGetVisualFromFBConfig(display(), configs[j]); if (vi == NULL) continue;