mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-10-31 07:59:02 -05:00 
			
		
		
		
	gl_shader_decompiler: Fix GLSL compiler error with KIL instruction.
This commit is contained in:
		| @@ -1667,7 +1667,15 @@ private: | ||||
|             } | ||||
|             case OpCode::Id::KIL: { | ||||
|                 ASSERT(instr.flow.cond == Tegra::Shader::FlowCondition::Always); | ||||
|  | ||||
|                 // Enclose "discard" in a conditional, so that GLSL compilation does not complain | ||||
|                 // about unexecuted instructions that may follow this. | ||||
|                 shader.AddLine("if (true) {"); | ||||
|                 ++shader.scope; | ||||
|                 shader.AddLine("discard;"); | ||||
|                 --shader.scope; | ||||
|                 shader.AddLine("}"); | ||||
|  | ||||
|                 break; | ||||
|             } | ||||
|             case OpCode::Id::BRA: { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 bunnei
					bunnei