diff options
author | FernandoS27 <fsahmkow27@gmail.com> | 2018-10-10 15:45:22 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2018-10-22 21:07:31 +0200 |
commit | bcb5b924fd10183fb8fdbbbbe3ba909f8b9fc346 (patch) | |
tree | c94b3071fca24eaf4eec9e09a6c8b0255fa89d7b /src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |
parent | Added Alpha Func (diff) | |
download | yuzu-bcb5b924fd10183fb8fdbbbbe3ba909f8b9fc346.tar yuzu-bcb5b924fd10183fb8fdbbbbe3ba909f8b9fc346.tar.gz yuzu-bcb5b924fd10183fb8fdbbbbe3ba909f8b9fc346.tar.bz2 yuzu-bcb5b924fd10183fb8fdbbbbe3ba909f8b9fc346.tar.lz yuzu-bcb5b924fd10183fb8fdbbbbe3ba909f8b9fc346.tar.xz yuzu-bcb5b924fd10183fb8fdbbbbe3ba909f8b9fc346.tar.zst yuzu-bcb5b924fd10183fb8fdbbbbe3ba909f8b9fc346.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 5 |
1 files changed, 3 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 cbf501cc7..7bd4d2d95 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -1280,8 +1280,9 @@ private: header.ps.IsColorComponentOutputEnabled(render_target, 1) || header.ps.IsColorComponentOutputEnabled(render_target, 2) || header.ps.IsColorComponentOutputEnabled(render_target, 3)) { - shader.AddLine(fmt::format("if (AlphaFunc({}, alpha_testing_ref, alpha_testing_func)) discard;", - regs.GetRegisterAsFloat(current_reg))); + shader.AddLine(fmt::format( + "if (AlphaFunc({}, alpha_testing_ref, alpha_testing_func)) discard;", + regs.GetRegisterAsFloat(current_reg))); current_reg += 4; } } |