summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_shader_manager.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-05-22 01:28:09 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-05-30 18:21:01 +0200
commitb76df62c00c28244f2fdd657b809853907f0070f (patch)
treedfba6fc3c4fa662f9ee6825595597596811873ec /src/video_core/renderer_opengl/gl_shader_manager.cpp
parentgl_rasterizer: Use GL_QUADS to emulate quads rendering (diff)
downloadyuzu-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.cpp11
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