diff options
author | FernandoS27 <fsahmkow27@gmail.com> | 2018-10-10 22:34:15 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2018-10-22 21:07:33 +0200 |
commit | 59a004f915e84fec4a4fed125661eb486e1de198 (patch) | |
tree | 0503fc9161e632023e1deeb005b33ee028440bcc /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Cache uniform locations and restructure the implementation (diff) | |
download | yuzu-59a004f915e84fec4a4fed125661eb486e1de198.tar yuzu-59a004f915e84fec4a4fed125661eb486e1de198.tar.gz yuzu-59a004f915e84fec4a4fed125661eb486e1de198.tar.bz2 yuzu-59a004f915e84fec4a4fed125661eb486e1de198.tar.lz yuzu-59a004f915e84fec4a4fed125661eb486e1de198.tar.xz yuzu-59a004f915e84fec4a4fed125661eb486e1de198.tar.zst yuzu-59a004f915e84fec4a4fed125661eb486e1de198.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 0f8227f7b..d93681813 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -323,8 +323,6 @@ void RasterizerOpenGL::SetupShaders(GLenum primitive_mode) { current_texture_bindpoint = SetupTextures(static_cast<Maxwell::ShaderStage>(stage), shader, primitive_mode, current_texture_bindpoint); - SetupAlphaTesting(shader); - // When VertexA is enabled, we have dual vertex shaders if (program == Maxwell::ShaderProgram::VertexA) { // VertexB was combined with VertexA, so we skip the VertexB iteration @@ -882,19 +880,6 @@ u32 RasterizerOpenGL::SetupTextures(Maxwell::ShaderStage stage, Shader& shader, return current_unit + static_cast<u32>(entries.size()); } -void RasterizerOpenGL::SetupAlphaTesting(Shader& shader) { - const auto& regs = Core::System::GetInstance().GPU().Maxwell3D().regs; - - u32 func = static_cast<u32>(regs.alpha_test_func); - // Normalize the gl variants of opCompare to be the same as the normal variants - u32 op = static_cast<u32>(Tegra::Engines::Maxwell3D::Regs::ComparisonOp::Never); - if (func >= op) { - func = func - op + 1U; - } - - shader->SetAlphaTesting(regs.alpha_test_enabled == 1, regs.alpha_test_ref, func); -} - void RasterizerOpenGL::SyncViewport() { const auto& regs = Core::System::GetInstance().GPU().Maxwell3D().regs; const MathUtil::Rectangle<s32> viewport_rect{regs.viewport_transform[0].GetRect()}; |