diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-12-29 23:23:40 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-28 21:56:42 +0100 |
commit | b910a83a47a2b566a760dbd20ff5902f303044d4 (patch) | |
tree | 8b8952cf2132b21bf6a5da304aaeeab9de4bfa8c /src/video_core/renderer_opengl/gl_state_tracker.h | |
parent | gl_state_tracker: Implement dirty flags for blending (diff) | |
download | yuzu-b910a83a47a2b566a760dbd20ff5902f303044d4.tar yuzu-b910a83a47a2b566a760dbd20ff5902f303044d4.tar.gz yuzu-b910a83a47a2b566a760dbd20ff5902f303044d4.tar.bz2 yuzu-b910a83a47a2b566a760dbd20ff5902f303044d4.tar.lz yuzu-b910a83a47a2b566a760dbd20ff5902f303044d4.tar.xz yuzu-b910a83a47a2b566a760dbd20ff5902f303044d4.tar.zst yuzu-b910a83a47a2b566a760dbd20ff5902f303044d4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_state_tracker.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_state_tracker.h b/src/video_core/renderer_opengl/gl_state_tracker.h index a9b470eee..1d854f38e 100644 --- a/src/video_core/renderer_opengl/gl_state_tracker.h +++ b/src/video_core/renderer_opengl/gl_state_tracker.h @@ -56,9 +56,8 @@ enum : u8 { Shaders, ClipDistances, - CullTestEnable, FrontFace, - CullFace, + CullTest, PrimitiveRestart, DepthTest, StencilTest, @@ -120,6 +119,16 @@ public: flags[VideoCommon::Dirty::RenderTargets] = true; } + void NotifyFrontFace() { + auto& flags = system.GPU().Maxwell3D().dirty.flags; + flags[OpenGL::Dirty::FrontFace] = true; + } + + void NotifyCullTest() { + auto& flags = system.GPU().Maxwell3D().dirty.flags; + flags[OpenGL::Dirty::CullTest] = true; + } + private: Core::System& system; }; |