diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-13 03:31:06 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-13 03:31:06 +0100 |
commit | e24197bb3f74888053eb4ae49e042ec46a1c7a30 (patch) | |
tree | 759d7df591c193936cb08536d8f0252896aeda78 /src/video_core/renderer_opengl | |
parent | gl_shader_decompiler: Add missing {} on smem GLSL emission (diff) | |
download | yuzu-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/video_core/renderer_opengl')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 4 |
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 { |