diff options
author | Liam <byteslice@airmail.cc> | 2022-08-20 04:15:23 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-10-06 21:00:54 +0200 |
commit | 0d99b7962d8e06958668168cdae155fd1e3d1757 (patch) | |
tree | 55ef394dafbe74050da9cffbc184a3c898ce71b7 /src/video_core/renderer_opengl | |
parent | general: rework usages of UNREACHABLE macro (diff) | |
download | yuzu-0d99b7962d8e06958668168cdae155fd1e3d1757.tar yuzu-0d99b7962d8e06958668168cdae155fd1e3d1757.tar.gz yuzu-0d99b7962d8e06958668168cdae155fd1e3d1757.tar.bz2 yuzu-0d99b7962d8e06958668168cdae155fd1e3d1757.tar.lz yuzu-0d99b7962d8e06958668168cdae155fd1e3d1757.tar.xz yuzu-0d99b7962d8e06958668168cdae155fd1e3d1757.tar.zst yuzu-0d99b7962d8e06958668168cdae155fd1e3d1757.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_state_tracker.cpp | 2 | ||||
-rw-r--r-- | src/video_core/renderer_opengl/gl_state_tracker.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_state_tracker.cpp b/src/video_core/renderer_opengl/gl_state_tracker.cpp index 3657f867d..a8f3a0f57 100644 --- a/src/video_core/renderer_opengl/gl_state_tracker.cpp +++ b/src/video_core/renderer_opengl/gl_state_tracker.cpp @@ -237,6 +237,6 @@ void StateTracker::InvalidateState() { flags->set(); } -StateTracker::StateTracker() : flags{} {} +StateTracker::StateTracker() : flags{&default_flags} {} } // namespace OpenGL diff --git a/src/video_core/renderer_opengl/gl_state_tracker.h b/src/video_core/renderer_opengl/gl_state_tracker.h index 97d32768b..19bcf3f35 100644 --- a/src/video_core/renderer_opengl/gl_state_tracker.h +++ b/src/video_core/renderer_opengl/gl_state_tracker.h @@ -223,6 +223,7 @@ public: private: Tegra::Engines::Maxwell3D::DirtyState::Flags* flags; + Tegra::Engines::Maxwell3D::DirtyState::Flags default_flags{}; GLuint framebuffer = 0; GLuint index_buffer = 0; |