summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-03-13 03:31:06 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-03-13 03:31:06 +0100
commite24197bb3f74888053eb4ae49e042ec46a1c7a30 (patch)
tree759d7df591c193936cb08536d8f0252896aeda78 /src
parentgl_shader_decompiler: Add missing {} on smem GLSL emission (diff)
downloadyuzu-e24197bb3f74888053eb4ae49e042ec46a1c7a30.tar
yuzu-e24197bb3f74888053eb4ae49e042ec46a1c7a30.tar.gz
yuzu-e24197bb3f74888053eb4ae49e042ec46a1c7a30.tar.bz2
yuzu-e24197bb3f74888053eb4ae49e042ec46a1c7a30.tar.lz
yuzu-e24197bb3f74888053eb4ae49e042ec46a1c7a30.tar.xz
yuzu-e24197bb3f74888053eb4ae49e042ec46a1c7a30.tar.zst
yuzu-e24197bb3f74888053eb4ae49e042ec46a1c7a30.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index 54b38b73a..19d6f3dcb 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -419,6 +419,10 @@ public:
code.AddLine("void main() {{");
++code.scope;
+ if (stage == ShaderType::Vertex) {
+ code.AddLine("gl_Position = vec4(0.0f, 0.0f, 0.0f, 1.0f);");
+ }
+
if (ir.IsDecompiled()) {
DecompileAST();
} else {