diff options
author | bunnei <bunneidev@gmail.com> | 2018-06-16 04:03:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-16 04:03:48 +0200 |
commit | 46cbb6b090879a3956ef65b82dc22512dbccb788 (patch) | |
tree | 8cb1b91f31eb7b3ce78f99f8fb741ca371f33f6e | |
parent | Merge pull request #560 from Subv/crash_widget (diff) | |
parent | gl_shader_gen: Set position.w to 1. (diff) | |
download | yuzu-46cbb6b090879a3956ef65b82dc22512dbccb788.tar yuzu-46cbb6b090879a3956ef65b82dc22512dbccb788.tar.gz yuzu-46cbb6b090879a3956ef65b82dc22512dbccb788.tar.bz2 yuzu-46cbb6b090879a3956ef65b82dc22512dbccb788.tar.lz yuzu-46cbb6b090879a3956ef65b82dc22512dbccb788.tar.xz yuzu-46cbb6b090879a3956ef65b82dc22512dbccb788.tar.zst yuzu-46cbb6b090879a3956ef65b82dc22512dbccb788.zip |
Diffstat (limited to '')
-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; |