summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-06-16 01:25:36 +0200
committerbunnei <bunneidev@gmail.com>2018-06-16 02:47:04 +0200
commit55c49d5bf49182ad906432f1266a781e4526d772 (patch)
tree8cb1b91f31eb7b3ce78f99f8fb741ca371f33f6e /src/video_core
parentMerge pull request #560 from Subv/crash_widget (diff)
downloadyuzu-55c49d5bf49182ad906432f1266a781e4526d772.tar
yuzu-55c49d5bf49182ad906432f1266a781e4526d772.tar.gz
yuzu-55c49d5bf49182ad906432f1266a781e4526d772.tar.bz2
yuzu-55c49d5bf49182ad906432f1266a781e4526d772.tar.lz
yuzu-55c49d5bf49182ad906432f1266a781e4526d772.tar.xz
yuzu-55c49d5bf49182ad906432f1266a781e4526d772.tar.zst
yuzu-55c49d5bf49182ad906432f1266a781e4526d772.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_gen.cpp4
1 files changed, 4 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 b88d592b7..c1e6fac9f 100644
--- a/src/video_core/renderer_opengl/gl_shader_gen.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_gen.cpp
@@ -39,6 +39,10 @@ void main() {
// Viewport can be flipped, which is unsupported by glViewport
position.xy *= viewport_flip.xy;
gl_Position = position;
+
+ // TODO(bunnei): This is likely a hack, position.w should be interpolated as 1.0
+ // For now, this is here to bring order in lieu of proper emulation
+ position.w = 1.0;
}
)";
out += program.first;