summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-02-13 03:40:31 +0100
committerGitHub <noreply@github.com>2019-02-13 03:40:31 +0100
commitc425a1a857c8833dbc18e81d7b03386ac8749fbc (patch)
tree94383cce27f061741ee651451cfefc6ade3978de /src/video_core/renderer_opengl
parentMerge pull request #2110 from lioncash/namespace (diff)
parentrenderer_opengl: Remove reference to global system instance (diff)
downloadyuzu-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 'src/video_core/renderer_opengl')
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.cpp6
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();