summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index d21daf28a..7e038ac86 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -356,13 +356,13 @@ public:
356 * @param reg The register to use as the source value. 356 * @param reg The register to use as the source value.
357 */ 357 */
358 void SetOutputAttributeToRegister(Attribute::Index attribute, u64 elem, const Register& reg) { 358 void SetOutputAttributeToRegister(Attribute::Index attribute, u64 elem, const Register& reg) {
359 std::string dest = GetOutputAttribute(attribute) + GetSwizzle(elem); 359 std::string dest = GetOutputAttribute(attribute);
360 std::string src = GetRegisterAsFloat(reg); 360 std::string src = GetRegisterAsFloat(reg);
361 361
362 if (!dest.empty()) { 362 if (!dest.empty()) {
363 // Can happen with unknown/unimplemented output attributes, in which case we ignore the 363 // Can happen with unknown/unimplemented output attributes, in which case we ignore the
364 // instruction for now. 364 // instruction for now.
365 shader.AddLine(dest + " = " + src + ';'); 365 shader.AddLine(dest + GetSwizzle(elem) + " = " + src + ';');
366 } 366 }
367 } 367 }
368 368