mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-10-31 07:59:02 -05:00 
			
		
		
		
	gl_shader_decompiler: Fix SetOutputAttributeToRegister empty check.
This commit is contained in:
		| @@ -356,13 +356,13 @@ public: | ||||
|      * @param reg The register to use as the source value. | ||||
|      */ | ||||
|     void SetOutputAttributeToRegister(Attribute::Index attribute, u64 elem, const Register& reg) { | ||||
|         std::string dest = GetOutputAttribute(attribute) + GetSwizzle(elem); | ||||
|         std::string dest = GetOutputAttribute(attribute); | ||||
|         std::string src = GetRegisterAsFloat(reg); | ||||
|  | ||||
|         if (!dest.empty()) { | ||||
|             // Can happen with unknown/unimplemented output attributes, in which case we ignore the | ||||
|             // instruction for now. | ||||
|             shader.AddLine(dest + " = " + src + ';'); | ||||
|             shader.AddLine(dest + GetSwizzle(elem) + " = " + src + ';'); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 bunnei
					bunnei