diff options
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state_tracker.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_state_tracker.h | 10 |
1 files changed, 9 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 91d4bb8d3..93c64a44a 100644 --- a/src/video_core/renderer_opengl/gl_state_tracker.h +++ b/src/video_core/renderer_opengl/gl_state_tracker.h @@ -23,6 +23,7 @@ enum : u8 { VertexInstances, Shaders, Viewports, + ViewportTransform, CullTestEnable, FrontFace, CullFace, @@ -33,7 +34,8 @@ enum : u8 { BlendState, PolygonOffset, - VertexBuffer0 = PolygonOffset + 8, + Viewport0, + VertexBuffer0 = Viewport0 + 16, VertexInstance0 = VertexBuffer0 + 32, }; } @@ -44,6 +46,12 @@ public: void Initialize(); + void NotifyViewport0() { + auto& flags = system.GPU().Maxwell3D().dirty.flags; + flags[OpenGL::Dirty::Viewports] = true; + flags[OpenGL::Dirty::Viewport0] = true; + } + void NotifyFramebuffer() { auto& flags = system.GPU().Maxwell3D().dirty.flags; flags[VideoCommon::Dirty::RenderTargets] = true; |