diff options
| author | 2019-04-23 18:29:29 +0300 | |
|---|---|---|
| committer | 2019-04-23 18:29:29 +0300 | |
| commit | b2fbcaae30b222b11dec3b78c539f91677603bfe (patch) | |
| tree | eacc902d481df17fa325f87b856c616bf5e74bb7 /src | |
| parent | Merge pull request #2383 from ReinUsesLisp/aoffi-test (diff) | |
| parent | Apply Position Y Direction (diff) | |
| download | yuzu-b2fbcaae30b222b11dec3b78c539f91677603bfe.tar.gz yuzu-b2fbcaae30b222b11dec3b78c539f91677603bfe.tar.xz yuzu-b2fbcaae30b222b11dec3b78c539f91677603bfe.zip | |
Merge pull request #2425 from FernandoS27/y-direction
Fix flipping on some games by applying Y direction register
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_gen.cpp | 3 |
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() { | |||
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | out += R"( | 60 | out += R"( |
| 61 | |||
| 62 | // Set Position Y direction | ||
| 63 | position.y *= utof(config_pack[2]); | ||
| 61 | // Check if the flip stage is VertexB | 64 | // Check if the flip stage is VertexB |
| 62 | // Config pack's second value is flip_stage | 65 | // Config pack's second value is flip_stage |
| 63 | if (config_pack[1] == 1) { | 66 | if (config_pack[1] == 1) { |