summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-12 10:09:41 +0200
committerGitHub <noreply@github.com>2018-08-12 10:09:41 +0200
commit5926fbd3d7b51e9adeb38b6267191fca4442334e (patch)
tree3b70b1642c325fb4823c53da7f0fd1d1ddd704fb /src
parentMerge pull request #922 from lioncash/cmake (diff)
parentgl_shader_decompiler: Fix SetOutputAttributeToRegister empty check. (diff)
downloadyuzu-5926fbd3d7b51e9adeb38b6267191fca4442334e.tar
yuzu-5926fbd3d7b51e9adeb38b6267191fca4442334e.tar.gz
yuzu-5926fbd3d7b51e9adeb38b6267191fca4442334e.tar.bz2
yuzu-5926fbd3d7b51e9adeb38b6267191fca4442334e.tar.lz
yuzu-5926fbd3d7b51e9adeb38b6267191fca4442334e.tar.xz
yuzu-5926fbd3d7b51e9adeb38b6267191fca4442334e.tar.zst
yuzu-5926fbd3d7b51e9adeb38b6267191fca4442334e.zip
Diffstat (limited to '')
-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:
* @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 + ';');
}
}