Browse Source

gl_shader_gen: Set position.w to 1.

nce_cpp
bunnei 8 years ago
parent
commit
bb1e655f2d
  1. 4
      src/video_core/renderer_opengl/gl_shader_gen.cpp

4
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;

Loading…
Cancel
Save