[Scummvm-git-logs] scummvm master -> 8e88170c0d34b0a5f64259aa4ac47eadb0d985e8
lephilousophe
noreply at scummvm.org
Sat Oct 15 14:03:27 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:
8e88170c0d BACKENDS: OPENGL: Fix output size computation
Commit: 8e88170c0d34b0a5f64259aa4ac47eadb0d985e8
https://github.com/scummvm/scummvm/commit/8e88170c0d34b0a5f64259aa4ac47eadb0d985e8
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2022-10-15T16:02:15+02:00
Commit Message:
BACKENDS: OPENGL: Fix output size computation
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 a4b0ed2cbf4..c24bd487946 100644
--- a/backends/graphics/opengl/pipelines/libretro.cpp
+++ b/backends/graphics/opengl/pipelines/libretro.cpp
@@ -136,8 +136,12 @@ void LibRetroPipeline::drawTexture(const GLTexture &texture, const GLfloat *coor
// Set input texture for 1st pass to texture to draw.
_passes[0].inputTexture = &texture;
- // XXX:
- setOutputSize(coordinates[6], coordinates[7]);
+ // Get back screen size from texture coordinates.
+ // FIXME: We assume a fixed set of triangle strip
+ GLfloat w, h;
+ w = coordinates[6] - coordinates[0];
+ h = coordinates[7] - coordinates[1];
+ setOutputSize(w, h);
// In case texture dimensions or viewport dimensions changed, we need to
// update the pipeline's state.
More information about the Scummvm-git-logs
mailing list