summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2018-06-15 22:03:48 -0400
committerGravatar GitHub2018-06-15 22:03:48 -0400
commit46cbb6b090879a3956ef65b82dc22512dbccb788 (patch)
tree8cb1b91f31eb7b3ce78f99f8fb741ca371f33f6e /src
parentMerge pull request #560 from Subv/crash_widget (diff)
parentgl_shader_gen: Set position.w to 1. (diff)
downloadyuzu-46cbb6b090879a3956ef65b82dc22512dbccb788.tar.gz
yuzu-46cbb6b090879a3956ef65b82dc22512dbccb788.tar.xz
yuzu-46cbb6b090879a3956ef65b82dc22512dbccb788.zip
Merge pull request #566 from bunnei/set_pos_w
gl_shader_gen: Set position.w to 1.
Diffstat (limited to 'src')
-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() {
39 // Viewport can be flipped, which is unsupported by glViewport 39 // Viewport can be flipped, which is unsupported by glViewport
40 position.xy *= viewport_flip.xy; 40 position.xy *= viewport_flip.xy;
41 gl_Position = position; 41 gl_Position = position;
42
43 // TODO(bunnei): This is likely a hack, position.w should be interpolated as 1.0
44 // For now, this is here to bring order in lieu of proper emulation
45 position.w = 1.0;
42} 46}
43)"; 47)";
44 out += program.first; 48 out += program.first;