diff options
| author | 2018-08-12 04:09:41 -0400 | |
|---|---|---|
| committer | 2018-08-12 04:09:41 -0400 | |
| commit | 5926fbd3d7b51e9adeb38b6267191fca4442334e (patch) | |
| tree | 3b70b1642c325fb4823c53da7f0fd1d1ddd704fb /src | |
| parent | Merge pull request #922 from lioncash/cmake (diff) | |
| parent | gl_shader_decompiler: Fix SetOutputAttributeToRegister empty check. (diff) | |
| download | yuzu-5926fbd3d7b51e9adeb38b6267191fca4442334e.tar.gz yuzu-5926fbd3d7b51e9adeb38b6267191fca4442334e.tar.xz yuzu-5926fbd3d7b51e9adeb38b6267191fca4442334e.zip | |
Merge pull request #1029 from bunnei/fix-out-attrib
gl_shader_decompiler: Fix SetOutputAttributeToRegister empty check.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 4 |
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 | ||