summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-07-04 22:24:04 +0200
committerSubv <subv2112@gmail.com>2018-07-04 22:43:21 +0200
commitd800a02b4b3a301ee221d831f1832f1d15d96bf1 (patch)
treea97e219e6c75615b821234764aa9e30302cc35b3 /src/video_core
parentMerge pull request #618 from Subv/clear_used_buffers (diff)
downloadyuzu-d800a02b4b3a301ee221d831f1832f1d15d96bf1.tar
yuzu-d800a02b4b3a301ee221d831f1832f1d15d96bf1.tar.gz
yuzu-d800a02b4b3a301ee221d831f1832f1d15d96bf1.tar.bz2
yuzu-d800a02b4b3a301ee221d831f1832f1d15d96bf1.tar.lz
yuzu-d800a02b4b3a301ee221d831f1832f1d15d96bf1.tar.xz
yuzu-d800a02b4b3a301ee221d831f1832f1d15d96bf1.tar.zst
yuzu-d800a02b4b3a301ee221d831f1832f1d15d96bf1.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp3
1 files changed, 3 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 ec9956edb..f9a90a1a4 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -1213,6 +1213,9 @@ private:
switch (instr.conversion.f2f.rounding) {
case Tegra::Shader::F2fRoundingOp::None:
break;
+ case Tegra::Shader::F2fRoundingOp::Round:
+ op_a = "roundEven(" + op_a + ')';
+ break;
case Tegra::Shader::F2fRoundingOp::Floor:
op_a = "floor(" + op_a + ')';
break;