kwin: Fix the glBlendFunc() in the shader case.

The RGB values were being multiplied by the alpha value twice.
icc-effect-5.14.5
Fredrik Höglund 2011-02-04 21:44:50 +01:00
parent 8bc586e613
commit 2a6a4e9667
1 changed files with 1 additions and 1 deletions

View File

@ -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);