diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-05-22 01:28:09 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-05-30 18:21:01 +0200 |
commit | b76df62c00c28244f2fdd657b809853907f0070f (patch) | |
tree | dfba6fc3c4fa662f9ee6825595597596811873ec /src/video_core/renderer_opengl/gl_shader_manager.cpp | |
parent | gl_rasterizer: Use GL_QUADS to emulate quads rendering (diff) | |
download | yuzu-b76df62c00c28244f2fdd657b809853907f0070f.tar yuzu-b76df62c00c28244f2fdd657b809853907f0070f.tar.gz yuzu-b76df62c00c28244f2fdd657b809853907f0070f.tar.bz2 yuzu-b76df62c00c28244f2fdd657b809853907f0070f.tar.lz yuzu-b76df62c00c28244f2fdd657b809853907f0070f.tar.xz yuzu-b76df62c00c28244f2fdd657b809853907f0070f.tar.zst yuzu-b76df62c00c28244f2fdd657b809853907f0070f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_manager.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_manager.cpp b/src/video_core/renderer_opengl/gl_shader_manager.cpp index 05ab01dcb..b05f90f20 100644 --- a/src/video_core/renderer_opengl/gl_shader_manager.cpp +++ b/src/video_core/renderer_opengl/gl_shader_manager.cpp @@ -48,17 +48,6 @@ void MaxwellUniformData::SetFromRegs(const Maxwell3D& maxwell, std::size_t shade viewport_flip[0] = regs.viewport_transform[0].scale_x < 0.0 ? -1.0f : 1.0f; viewport_flip[1] = regs.viewport_transform[0].scale_y < 0.0 ? -1.0f : 1.0f; - auto func{static_cast<u32>(regs.alpha_test_func)}; - // Normalize the gl variants of opCompare to be the same as the normal variants - const u32 op_gl_variant_base = static_cast<u32>(Maxwell3D::Regs::ComparisonOp::Never); - if (func >= op_gl_variant_base) { - func = func - op_gl_variant_base + 1U; - } - - alpha_test.enabled = regs.alpha_test_enabled; - alpha_test.func = func; - alpha_test.ref = regs.alpha_test_ref; - instance_id = state.current_instance; // Assign in which stage the position has to be flipped |