summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHexagon12 <Hexagon12@users.noreply.github.com>2019-04-23 18:29:29 +0300
committerGitHub <noreply@github.com>2019-04-23 18:29:29 +0300
commitb2fbcaae30b222b11dec3b78c539f91677603bfe (patch)
treeeacc902d481df17fa325f87b856c616bf5e74bb7
parent4fad91ca4501af51822a35d5f251c6cf486f5041 (diff)
parent08cdcc2871ceb8a2dc929e2d20c146dc72452cfc (diff)
Merge pull request #2425 from FernandoS27/y-direction
Fix flipping on some games by applying Y direction register
-rw-r--r--src/video_core/renderer_opengl/gl_shader_gen.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_gen.cpp b/src/video_core/renderer_opengl/gl_shader_gen.cpp
index c055005ed..6abf948f8 100644
--- a/src/video_core/renderer_opengl/gl_shader_gen.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_gen.cpp
@@ -58,6 +58,9 @@ void main() {
}
out += R"(
+
+ // Set Position Y direction
+ position.y *= utof(config_pack[2]);
// Check if the flip stage is VertexB
// Config pack's second value is flip_stage
if (config_pack[1] == 1) {