mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-24 09:05:47 +00:00
gl_shader_decompiler: Initialize gl_Position on vertex shaders
This commit is contained in:
parent
2bfe536e83
commit
7fe1da4478
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue