gl_shader_gen: Set position.w to 1.

merge-requests/60/head
bunnei 2018-06-15 19:25:36 +07:00
parent 17f3590d59
commit 55c49d5bf4
1 changed files with 4 additions and 0 deletions

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