From 55c49d5bf49182ad906432f1266a781e4526d772 Mon Sep 17 00:00:00 2001 From: bunnei Date: Fri, 15 Jun 2018 19:25:36 -0400 Subject: gl_shader_gen: Set position.w to 1. --- src/video_core/renderer_opengl/gl_shader_gen.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3