diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-12-25 21:02:17 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-28 20:39:27 +0100 |
commit | 96ac3d518a9882a2a040f319c47a567467c9266d (patch) | |
tree | d1465f931df28d12891b07e5ab8c1d921a396376 /src/video_core/renderer_opengl/gl_state.h | |
parent | common/math_util: Support float type rectangles (diff) | |
download | yuzu-96ac3d518a9882a2a040f319c47a567467c9266d.tar yuzu-96ac3d518a9882a2a040f319c47a567467c9266d.tar.gz yuzu-96ac3d518a9882a2a040f319c47a567467c9266d.tar.bz2 yuzu-96ac3d518a9882a2a040f319c47a567467c9266d.tar.lz yuzu-96ac3d518a9882a2a040f319c47a567467c9266d.tar.xz yuzu-96ac3d518a9882a2a040f319c47a567467c9266d.tar.zst yuzu-96ac3d518a9882a2a040f319c47a567467c9266d.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_state.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.h b/src/video_core/renderer_opengl/gl_state.h index bce662f2c..5dda9e88f 100644 --- a/src/video_core/renderer_opengl/gl_state.h +++ b/src/video_core/renderer_opengl/gl_state.h @@ -212,39 +212,8 @@ public: /// Viewport does not affects glClearBuffer so emulate viewport using scissor test void EmulateViewportWithScissor(); - void MarkDirtyBlendState() { - dirty.blend_state = true; - } - - void MarkDirtyStencilState() { - dirty.stencil_state = true; - } - - void MarkDirtyPolygonOffset() { - dirty.polygon_offset = true; - } - - void MarkDirtyColorMask() { - dirty.color_mask = true; - } - - void AllDirty() { - dirty.blend_state = true; - dirty.stencil_state = true; - dirty.polygon_offset = true; - dirty.color_mask = true; - } - private: static OpenGLState cur_state; - - struct { - bool blend_state; - bool stencil_state; - bool viewport_state; - bool polygon_offset; - bool color_mask; - } dirty{}; }; static_assert(std::is_trivially_copyable_v<OpenGLState>); |