screenedge: Account for render target scale when rendering

This commit is contained in:
Arjen Hiemstra 2022-08-04 15:38:25 +02:00
parent f791eb8fa7
commit cb093bfae4

View file

@ -85,7 +85,7 @@ void ScreenEdgeEffect::paintScreen(int mask, const QRegion &region, ScreenPaintD
binder.shader()->setUniform(GLShader::ModulationConstant, constant);
const auto scale = effects->renderTargetScale();
QMatrix4x4 mvp = data.projectionMatrix();
mvp.translate(glow->geometry.x(), glow->geometry.y());
mvp.translate(glow->geometry.x() * scale, glow->geometry.y() * scale);
binder.shader()->setUniform(GLShader::ModelViewProjectionMatrix, mvp);
texture->render(glow->geometry, scale);
texture->unbind();