mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 08:59:03 -06:00 
			
		
		
		
	gl_shader_decompiler: Initialize gl_Position on vertex shaders
This commit is contained in:
		@@ -419,6 +419,10 @@ public:
 | 
				
			|||||||
        code.AddLine("void main() {{");
 | 
					        code.AddLine("void main() {{");
 | 
				
			||||||
        ++code.scope;
 | 
					        ++code.scope;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if (stage == ShaderType::Vertex) {
 | 
				
			||||||
 | 
					            code.AddLine("gl_Position = vec4(0.0f, 0.0f, 0.0f, 1.0f);");
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (ir.IsDecompiled()) {
 | 
					        if (ir.IsDecompiled()) {
 | 
				
			||||||
            DecompileAST();
 | 
					            DecompileAST();
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user