[Scummvm-git-logs] scummvm master -> c5d64589b4540b3c9dc7633ed044852f7c029545
lephilousophe
noreply at scummvm.org
Sat Oct 15 17:12:00 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
c5d64589b4 BACKENDS: OPENGL: Fix OutputSize uniforms value
Commit: c5d64589b4540b3c9dc7633ed044852f7c029545
https://github.com/scummvm/scummvm/commit/c5d64589b4540b3c9dc7633ed044852f7c029545
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2022-10-15T19:09:53+02:00
Commit Message:
BACKENDS: OPENGL: Fix OutputSize uniforms value
The OutputSize value is the size of the FBO target and not the screen
size
Changed paths:
backends/graphics/opengl/pipelines/libretro.cpp
diff --git a/backends/graphics/opengl/pipelines/libretro.cpp b/backends/graphics/opengl/pipelines/libretro.cpp
index c24bd487946..d45c853e20f 100644
--- a/backends/graphics/opengl/pipelines/libretro.cpp
+++ b/backends/graphics/opengl/pipelines/libretro.cpp
@@ -472,7 +472,7 @@ void LibRetroPipeline::setupPassUniforms(const uint id) {
Shader *const shader = pass.shader;
// Set output dimensions.
- shader->setUniform("OutputSize", Math::Vector2d(_outputWidth, _outputHeight));
+ shader->setUniform("OutputSize", Math::Vector2d(pass.target->getTexture()->getLogicalWidth(), pass.target->getTexture()->getLogicalHeight()));
// Set texture dimensions for input, original, and the passes.
setShaderTexUniforms(Common::String(), shader, *pass.inputTexture);
More information about the Scummvm-git-logs
mailing list