diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-12-29 03:08:40 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-28 21:56:42 +0100 |
commit | 69ad6279e45db408ba3add0b540660ae34ba8e3f (patch) | |
tree | b01bb91ad48fc64ca68cc23c609741dd7d72cf8e /src/video_core/renderer_opengl/gl_state_tracker.h | |
parent | gl_state_tracker: Implement dirty flags for color masks (diff) | |
download | yuzu-69ad6279e45db408ba3add0b540660ae34ba8e3f.tar yuzu-69ad6279e45db408ba3add0b540660ae34ba8e3f.tar.gz yuzu-69ad6279e45db408ba3add0b540660ae34ba8e3f.tar.bz2 yuzu-69ad6279e45db408ba3add0b540660ae34ba8e3f.tar.lz yuzu-69ad6279e45db408ba3add0b540660ae34ba8e3f.tar.xz yuzu-69ad6279e45db408ba3add0b540660ae34ba8e3f.tar.zst yuzu-69ad6279e45db408ba3add0b540660ae34ba8e3f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_state_tracker.h | 12 |
1 files changed, 12 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 0ad7c349a..7add22d88 100644 --- a/src/video_core/renderer_opengl/gl_state_tracker.h +++ b/src/video_core/renderer_opengl/gl_state_tracker.h @@ -20,6 +20,8 @@ enum : u8 { First = VideoCommon::Dirty::LastCommonEntry, VertexFormats, + VertexFormat0, + VertexFormat31 = VertexFormat0 + 31, VertexBuffers, VertexBuffer0, @@ -66,6 +68,16 @@ public: void Initialize(); + void NotifyScreenDrawVertexArray() { + auto& flags = system.GPU().Maxwell3D().dirty.flags; + flags[OpenGL::Dirty::VertexFormats] = true; + flags[OpenGL::Dirty::VertexFormat0 + 0] = true; + flags[OpenGL::Dirty::VertexFormat0 + 1] = true; + + flags[OpenGL::Dirty::VertexBuffers] = true; + flags[OpenGL::Dirty::VertexBuffer0] = true; + } + void NotifyViewport0() { auto& flags = system.GPU().Maxwell3D().dirty.flags; flags[OpenGL::Dirty::Viewports] = true; |