summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2019-11-19 20:32:01 -0300
committerGravatar ReinUsesLisp2019-11-19 20:32:01 -0300
commitbc10714dcfd2c2f043d5c8b5fd2a84a001df5a02 (patch)
tree8f6de5432788fb359905b2ff10375996bd3e650a /src
parentMerge pull request #3123 from ReinUsesLisp/logging-return (diff)
downloadyuzu-bc10714dcfd2c2f043d5c8b5fd2a84a001df5a02.tar.gz
yuzu-bc10714dcfd2c2f043d5c8b5fd2a84a001df5a02.tar.xz
yuzu-bc10714dcfd2c2f043d5c8b5fd2a84a001df5a02.zip
gl_shader_gen: Apply default value to gl_Position
Nvidia has sane default output values for varyings, but the other vendors don't apply these. To properly emulate this we would have to analyze the shader header. For the time being, apply the same default Nvidia applies so we get the same behaviour on non-Nvidia drivers.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_gen.cpp1
1 files changed, 1 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 af17216bd..a63c1a6b8 100644
--- a/src/video_core/renderer_opengl/gl_shader_gen.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_gen.cpp
@@ -32,6 +32,7 @@ layout (std140, binding = EMULATION_UBO_BINDING) uniform vs_config {
32 32
33 out += R"( 33 out += R"(
34void main() { 34void main() {
35 gl_Position = vec4(0.0f, 0.0f, 0.0f, 1.0f);
35 execute_vertex(); 36 execute_vertex();
36)"; 37)";
37 if (ir_b) { 38 if (ir_b) {