mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-11-01 12:57:52 +00:00
Merge pull request #2114 from lioncash/global
renderer_opengl: Remove reference to global system instance
This commit is contained in:
commit
c425a1a857
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue