diff options
author | bunnei <bunneidev@gmail.com> | 2018-06-16 01:25:36 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-06-16 02:47:04 +0200 |
commit | 55c49d5bf49182ad906432f1266a781e4526d772 (patch) | |
tree | 8cb1b91f31eb7b3ce78f99f8fb741ca371f33f6e /src/video_core | |
parent | Merge pull request #560 from Subv/crash_widget (diff) | |
download | yuzu-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.cpp | 4 |
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; |