diff options
author | Subv <subv2112@gmail.com> | 2018-08-15 16:15:55 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-08-15 16:15:55 +0200 |
commit | 11c221cc62fcde6f11d8a9ef26df92aa7267eba9 (patch) | |
tree | 9044ac5178abaa3f35d8e576deadae3a61f9835c /src/video_core/renderer_opengl | |
parent | Merge pull request #1077 from bunnei/rgba16u (diff) | |
download | yuzu-11c221cc62fcde6f11d8a9ef26df92aa7267eba9.tar yuzu-11c221cc62fcde6f11d8a9ef26df92aa7267eba9.tar.gz yuzu-11c221cc62fcde6f11d8a9ef26df92aa7267eba9.tar.bz2 yuzu-11c221cc62fcde6f11d8a9ef26df92aa7267eba9.tar.lz yuzu-11c221cc62fcde6f11d8a9ef26df92aa7267eba9.tar.xz yuzu-11c221cc62fcde6f11d8a9ef26df92aa7267eba9.tar.zst yuzu-11c221cc62fcde6f11d8a9ef26df92aa7267eba9.zip |
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index dabf98b74..5bd128e4f 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -1306,6 +1306,10 @@ private: op_a = "abs(" + op_a + ')'; } + if (instr.conversion.negate_a) { + op_a = "-(" + op_a + ')'; + } + switch (instr.conversion.f2i.rounding) { case Tegra::Shader::F2iRoundingOp::None: break; |