summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2018-12-11 11:43:38 -0500
committerGravatar GitHub2018-12-11 11:43:38 -0500
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... (diff)
downloadyuzu-d63c883e6647267e8627c0e54c3aac2f39b6b198.tar.gz
yuzu-d63c883e6647267e8627c0e54c3aac2f39b6b198.tar.xz
yuzu-d63c883e6647267e8627c0e54c3aac2f39b6b198.zip
Merge pull request #1888 from marcosvitali/glFrontFacing
gl_shader_decompiler: IPA fix FrontFacing.
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:
928 case Attribute::Index::FrontFacing: 928 case Attribute::Index::FrontFacing:
929 // TODO(Subv): Find out what the values are for the other elements. 929 // TODO(Subv): Find out what the values are for the other elements.
930 ASSERT(stage == Maxwell3D::Regs::ShaderStage::Fragment); 930 ASSERT(stage == Maxwell3D::Regs::ShaderStage::Fragment);
931 return "vec4(0, 0, 0, uintBitsToFloat(gl_FrontFacing ? 1 : 0))"; 931 return "vec4(0, 0, 0, intBitsToFloat(gl_FrontFacing ? -1 : 0))";
932 default: 932 default:
933 const u32 index{static_cast<u32>(attribute) - 933 const u32 index{static_cast<u32>(attribute) -
934 static_cast<u32>(Attribute::Index::Attribute_0)}; 934 static_cast<u32>(Attribute::Index::Attribute_0)};