kwin: Fix the glBlendFunc() in the shader case.
The RGB values were being multiplied by the alpha value twice.
This commit is contained in:
parent
8bc586e613
commit
2a6a4e9667
1 changed files with 1 additions and 1 deletions
|
@ -723,7 +723,7 @@ void SceneOpenGL::Window::prepareShaderRenderStates(TextureType type, double opa
|
||||||
if (!opaque) {
|
if (!opaque) {
|
||||||
glEnable(GL_BLEND);
|
glEnable(GL_BLEND);
|
||||||
if (alpha) {
|
if (alpha) {
|
||||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
|
||||||
} else {
|
} else {
|
||||||
glBlendColor((float)opacity, (float)opacity, (float)opacity, (float)opacity);
|
glBlendColor((float)opacity, (float)opacity, (float)opacity, (float)opacity);
|
||||||
glBlendFunc(GL_ONE, GL_ONE_MINUS_CONSTANT_ALPHA);
|
glBlendFunc(GL_ONE, GL_ONE_MINUS_CONSTANT_ALPHA);
|
||||||
|
|
Loading…
Reference in a new issue