From 9f69a793e890d60e7b5ff8eb1e3b0d801969deb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Sun, 7 Jul 2013 21:14:06 +0200 Subject: [PATCH] fix GL1.2 saturation modulation for non opaques whether a window is ARGB or just not opaque does not matter BUG: 319091 FIXED-IN: 4.11 REVIEW: 111433 --- scene_opengl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene_opengl.cpp b/scene_opengl.cpp index b19206133c..e62829f33f 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -1730,7 +1730,7 @@ void SceneOpenGL1Window::prepareStates(TextureType type, qreal opacity, qreal br glColor4f(opacity, opacity, opacity, opacity); tex->bind(); - if (alpha || brightness != 1.0f) { + if (alpha || !opaque || brightness != 1.0f) { glActiveTexture(GL_TEXTURE3); glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_COMBINE); glTexEnvi(GL_TEXTURE_ENV, GL_COMBINE_RGB, GL_MODULATE);