summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-12-11 17:43:38 +0100
committerGitHub <noreply@github.com>2018-12-11 17:43:38 +0100
commitd63c883e6647267e8627c0e54c3aac2f39b6b198 (patch)
tree98bead9b59aec47c5263b47a14742720777b2629 /src
parentMerge pull request #1846 from lioncash/dir (diff)
parentgl_shader_decompiler: IPA FrontFacing: the right value when is the front face is 0xFFFFFFFF. (diff)
downloadyuzu-d63c883e6647267e8627c0e54c3aac2f39b6b198.tar
yuzu-d63c883e6647267e8627c0e54c3aac2f39b6b198.tar.gz
yuzu-d63c883e6647267e8627c0e54c3aac2f39b6b198.tar.bz2
yuzu-d63c883e6647267e8627c0e54c3aac2f39b6b198.tar.lz
yuzu-d63c883e6647267e8627c0e54c3aac2f39b6b198.tar.xz
yuzu-d63c883e6647267e8627c0e54c3aac2f39b6b198.tar.zst
yuzu-d63c883e6647267e8627c0e54c3aac2f39b6b198.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index e7057a9cb..a5cfa0070 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -928,7 +928,7 @@ private:
case Attribute::Index::FrontFacing:
// TODO(Subv): Find out what the values are for the other elements.
ASSERT(stage == Maxwell3D::Regs::ShaderStage::Fragment);
- return "vec4(0, 0, 0, uintBitsToFloat(gl_FrontFacing ? 1 : 0))";
+ return "vec4(0, 0, 0, intBitsToFloat(gl_FrontFacing ? -1 : 0))";
default:
const u32 index{static_cast<u32>(attribute) -
static_cast<u32>(Attribute::Index::Attribute_0)};