From 5ba0d2c933900f30d875ef68d65f7a6a41c73196 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 28 Nov 2023 22:50:39 +0200 Subject: [PATCH] plugins/screencast: Simplify OutputScreenCastSource::render() The texture size is already in device pixels. --- src/plugins/screencast/outputscreencastsource.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/screencast/outputscreencastsource.cpp b/src/plugins/screencast/outputscreencastsource.cpp index 70a53a1bf8..6d6fc802e2 100644 --- a/src/plugins/screencast/outputscreencastsource.cpp +++ b/src/plugins/screencast/outputscreencastsource.cpp @@ -62,12 +62,12 @@ void OutputScreenCastSource::render(GLFramebuffer *target) ShaderBinder shaderBinder(ShaderTrait::MapTexture | ShaderTrait::TransformColorspace); QMatrix4x4 projectionMatrix; projectionMatrix.scale(1, -1); - projectionMatrix.ortho(QRect(QPoint(), textureSize() * m_output->scale())); + projectionMatrix.ortho(QRect(QPoint(), textureSize())); shaderBinder.shader()->setUniform(GLShader::ModelViewProjectionMatrix, projectionMatrix); shaderBinder.shader()->setColorspaceUniformsToSRGB(colorDescription); GLFramebuffer::pushFramebuffer(target); - outputTexture->render(textureSize(), m_output->scale()); + outputTexture->render(textureSize(), 1); GLFramebuffer::popFramebuffer(); }