screenedge: Account for render target scale when rendering
This commit is contained in:
parent
f791eb8fa7
commit
cb093bfae4
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ void ScreenEdgeEffect::paintScreen(int mask, const QRegion ®ion, 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();
|
||||
|
|
Loading…
Reference in a new issue