Commit 81c73306 authored by David Edmundson's avatar David Edmundson
Browse files

[scenes/opengl] Set correct blend mode for EffectQuickView buffers

Summary:
Everything is already multiplied in the buffer, we want to copy the
source directly.

Test Plan:
Looked at something with EffectQuickView and alpha
It now matched what it should be

Reviewers: #kwin, zzag

Reviewed By: #kwin, zzag

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D24368
parent d2f37a73
...@@ -874,8 +874,7 @@ void SceneOpenGL::paintEffectQuickView(EffectQuickView *w) ...@@ -874,8 +874,7 @@ void SceneOpenGL::paintEffectQuickView(EffectQuickView *w)
shader->setUniform(GLShader::ModelViewProjectionMatrix, mvp); shader->setUniform(GLShader::ModelViewProjectionMatrix, mvp);
glEnable(GL_BLEND); glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
t->bind(); t->bind();
t->render(QRegion(infiniteRegion()), w->geometry()); t->render(QRegion(infiniteRegion()), w->geometry());
t->unbind(); t->unbind();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment