summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-06-16 04:03:48 +0200
committerGitHub <noreply@github.com>2018-06-16 04:03:48 +0200
commit46cbb6b090879a3956ef65b82dc22512dbccb788 (patch)
tree8cb1b91f31eb7b3ce78f99f8fb741ca371f33f6e
parentMerge pull request #560 from Subv/crash_widget (diff)
parentgl_shader_gen: Set position.w to 1. (diff)
downloadyuzu-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.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;