diff options
author | bunnei <bunneidev@gmail.com> | 2018-12-11 11:43:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-11 11:43:38 -0500 |
commit | d63c883e6647267e8627c0e54c3aac2f39b6b198 (patch) | |
tree | 98bead9b59aec47c5263b47a14742720777b2629 /src | |
parent | 3b1043c58a743fa5efbd2d33f0080691114de964 (diff) | |
parent | 430e1f864b97a77287885e23fba5d04c43c99e6f (diff) |
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.cpp | 2 |
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)}; |