mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-27 05:50:06 +00:00
gl_shader_decompiler: Initialize gl_Position on vertex shaders
This commit is contained in:
parent
3a10016e38
commit
e24197bb3f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user