diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-21 07:29:24 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-28 21:56:43 +0100 |
commit | ef7f6eb67de9d05522b05ac520ef3184250fcbd4 (patch) | |
tree | 55b1ac585eeb9c97b9d33d8c3d774bba491e2483 | |
parent | gl_texture_cache: Remove blending disable on blits (diff) | |
download | yuzu-ef7f6eb67de9d05522b05ac520ef3184250fcbd4.tar yuzu-ef7f6eb67de9d05522b05ac520ef3184250fcbd4.tar.gz yuzu-ef7f6eb67de9d05522b05ac520ef3184250fcbd4.tar.bz2 yuzu-ef7f6eb67de9d05522b05ac520ef3184250fcbd4.tar.lz yuzu-ef7f6eb67de9d05522b05ac520ef3184250fcbd4.tar.xz yuzu-ef7f6eb67de9d05522b05ac520ef3184250fcbd4.tar.zst yuzu-ef7f6eb67de9d05522b05ac520ef3184250fcbd4.zip |
-rw-r--r-- | src/video_core/renderer_opengl/gl_state_tracker.h | 5 | ||||
-rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_state_tracker.h b/src/video_core/renderer_opengl/gl_state_tracker.h index 38b38c4a7..e08482911 100644 --- a/src/video_core/renderer_opengl/gl_state_tracker.h +++ b/src/video_core/renderer_opengl/gl_state_tracker.h @@ -190,6 +190,11 @@ public: flags[OpenGL::Dirty::ClipControl] = true; } + void NotifyAlphaTest() { + auto& flags = system.GPU().Maxwell3D().dirty.flags; + flags[OpenGL::Dirty::AlphaTest] = true; + } + private: Core::System& system; diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index 7b4c2b80c..a51410660 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp @@ -591,6 +591,7 @@ void RendererOpenGL::DrawScreen(const Layout::FramebufferLayout& layout) { state_tracker.NotifyFramebufferSRGB(); state_tracker.NotifyLogicOp(); state_tracker.NotifyClipControl(); + state_tracker.NotifyAlphaTest(); program_manager.UseVertexShader(vertex_program.handle); program_manager.UseGeometryShader(0); @@ -608,6 +609,7 @@ void RendererOpenGL::DrawScreen(const Layout::FramebufferLayout& layout) { glDisable(GL_STENCIL_TEST); glDisable(GL_POLYGON_OFFSET_FILL); glDisable(GL_RASTERIZER_DISCARD); + glDisable(GL_ALPHA_TEST); glDisablei(GL_BLEND, 0); glDisablei(GL_SCISSOR_TEST, 0); glCullFace(GL_BACK); |