From 2a6a4e9667c908586b8ebcfef45836179212c192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glund?= Date: Fri, 4 Feb 2011 21:44:50 +0100 Subject: [PATCH] kwin: Fix the glBlendFunc() in the shader case. The RGB values were being multiplied by the alpha value twice. --- scene_opengl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene_opengl.cpp b/scene_opengl.cpp index a4bd2fdb32..a9cb18bc04 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -723,7 +723,7 @@ void SceneOpenGL::Window::prepareShaderRenderStates(TextureType type, double opa if (!opaque) { glEnable(GL_BLEND); if (alpha) { - glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); } else { glBlendColor((float)opacity, (float)opacity, (float)opacity, (float)opacity); glBlendFunc(GL_ONE, GL_ONE_MINUS_CONSTANT_ALPHA);