|
|
|
|
@ -216,8 +216,9 @@ void LanczosFilter::performPaint(EffectWindowImpl* w, int mask, QRegion region, |
|
|
|
|
if (hardwareClipping) { |
|
|
|
|
glEnable(GL_SCISSOR_TEST); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
glEnable(GL_BLEND); |
|
|
|
|
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); |
|
|
|
|
glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); |
|
|
|
|
|
|
|
|
|
const qreal rgb = data.brightness() * data.opacity(); |
|
|
|
|
const qreal a = data.opacity(); |
|
|
|
|
@ -346,8 +347,9 @@ void LanczosFilter::performPaint(EffectWindowImpl* w, int mask, QRegion region, |
|
|
|
|
if (hardwareClipping) { |
|
|
|
|
glEnable(GL_SCISSOR_TEST); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
glEnable(GL_BLEND); |
|
|
|
|
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); |
|
|
|
|
glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); |
|
|
|
|
|
|
|
|
|
const qreal rgb = data.brightness() * data.opacity(); |
|
|
|
|
const qreal a = data.opacity(); |
|
|
|
|
@ -361,6 +363,7 @@ void LanczosFilter::performPaint(EffectWindowImpl* w, int mask, QRegion region, |
|
|
|
|
cache->render(region, textureRect, hardwareClipping); |
|
|
|
|
|
|
|
|
|
glDisable(GL_BLEND); |
|
|
|
|
|
|
|
|
|
if (hardwareClipping) { |
|
|
|
|
glDisable(GL_SCISSOR_TEST); |
|
|
|
|
} |
|
|
|
|
|