diff options
author | bunnei <bunneidev@gmail.com> | 2019-02-13 03:40:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-13 03:40:31 +0100 |
commit | c425a1a857c8833dbc18e81d7b03386ac8749fbc (patch) | |
tree | 94383cce27f061741ee651451cfefc6ade3978de /src | |
parent | Merge pull request #2110 from lioncash/namespace (diff) | |
parent | renderer_opengl: Remove reference to global system instance (diff) | |
download | yuzu-c425a1a857c8833dbc18e81d7b03386ac8749fbc.tar yuzu-c425a1a857c8833dbc18e81d7b03386ac8749fbc.tar.gz yuzu-c425a1a857c8833dbc18e81d7b03386ac8749fbc.tar.bz2 yuzu-c425a1a857c8833dbc18e81d7b03386ac8749fbc.tar.lz yuzu-c425a1a857c8833dbc18e81d7b03386ac8749fbc.tar.xz yuzu-c425a1a857c8833dbc18e81d7b03386ac8749fbc.tar.zst yuzu-c425a1a857c8833dbc18e81d7b03386ac8749fbc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index 843c034e7..cca2ed708 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp @@ -107,7 +107,7 @@ RendererOpenGL::~RendererOpenGL() = default; void RendererOpenGL::SwapBuffers( std::optional<std::reference_wrapper<const Tegra::FramebufferConfig>> framebuffer) { - Core::System::GetInstance().GetPerfStats().EndSystemFrame(); + system.GetPerfStats().EndSystemFrame(); // Maintain the rasterizer's state as a priority OpenGLState prev_state = OpenGLState::GetCurState(); @@ -137,8 +137,8 @@ void RendererOpenGL::SwapBuffers( render_window.PollEvents(); - Core::System::GetInstance().FrameLimiter().DoFrameLimiting(Core::Timing::GetGlobalTimeUs()); - Core::System::GetInstance().GetPerfStats().BeginSystemFrame(); + system.FrameLimiter().DoFrameLimiting(Core::Timing::GetGlobalTimeUs()); + system.GetPerfStats().BeginSystemFrame(); // Restore the rasterizer state prev_state.Apply(); |