diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-12-30 02:56:21 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-28 21:56:42 +0100 |
commit | 40a2c57df5459ff965f1ea507bbca0e36ab17c94 (patch) | |
tree | 264b74193808efb987305fae4743109d2db33eb4 /src/video_core/renderer_opengl/gl_state_tracker.h | |
parent | gl_state_tracker: Implement dirty flags for front face and culling (diff) | |
download | yuzu-40a2c57df5459ff965f1ea507bbca0e36ab17c94.tar yuzu-40a2c57df5459ff965f1ea507bbca0e36ab17c94.tar.gz yuzu-40a2c57df5459ff965f1ea507bbca0e36ab17c94.tar.bz2 yuzu-40a2c57df5459ff965f1ea507bbca0e36ab17c94.tar.lz yuzu-40a2c57df5459ff965f1ea507bbca0e36ab17c94.tar.xz yuzu-40a2c57df5459ff965f1ea507bbca0e36ab17c94.tar.zst yuzu-40a2c57df5459ff965f1ea507bbca0e36ab17c94.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_state_tracker.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_state_tracker.h b/src/video_core/renderer_opengl/gl_state_tracker.h index 1d854f38e..dd6cfe02a 100644 --- a/src/video_core/renderer_opengl/gl_state_tracker.h +++ b/src/video_core/renderer_opengl/gl_state_tracker.h @@ -58,8 +58,9 @@ enum : u8 { FrontFace, CullTest, - PrimitiveRestart, + DepthMask, DepthTest, + PrimitiveRestart, StencilTest, ColorMask, PolygonOffset, @@ -129,6 +130,11 @@ public: flags[OpenGL::Dirty::CullTest] = true; } + void NotifyDepthTest() { + auto& flags = system.GPU().Maxwell3D().dirty.flags; + flags[OpenGL::Dirty::DepthTest] = true; + } + private: Core::System& system; }; |