Просмотр исходного кода

Merge pull request #2425 from FernandoS27/y-direction

Fix flipping on some games by applying Y direction register
Hexagon12 7 лет назад
Родитель
Сommit
b2fbcaae30
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/video_core/renderer_opengl/gl_shader_gen.cpp

+ 3 - 0
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) {