plugins/screencast: Simplify OutputScreenCastSource::render()
The texture size is already in device pixels.
This commit is contained in:
parent
8452b1414e
commit
5ba0d2c933
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue