diff options
author | Lioncash <mathew1800@gmail.com> | 2018-08-11 00:39:37 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-08-11 01:00:09 +0200 |
commit | 20c2928c2b157b8a322a128732cd00cabbfa9d6d (patch) | |
tree | f7db86f1b27135d7cc352c6eb5de4f2949d7e0f4 /src/video_core/renderer_base.cpp | |
parent | renderer_base: Remove unused kFramebuffer enumeration (diff) | |
download | yuzu-20c2928c2b157b8a322a128732cd00cabbfa9d6d.tar yuzu-20c2928c2b157b8a322a128732cd00cabbfa9d6d.tar.gz yuzu-20c2928c2b157b8a322a128732cd00cabbfa9d6d.tar.bz2 yuzu-20c2928c2b157b8a322a128732cd00cabbfa9d6d.tar.lz yuzu-20c2928c2b157b8a322a128732cd00cabbfa9d6d.tar.xz yuzu-20c2928c2b157b8a322a128732cd00cabbfa9d6d.tar.zst yuzu-20c2928c2b157b8a322a128732cd00cabbfa9d6d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_base.cpp | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/video_core/renderer_base.cpp b/src/video_core/renderer_base.cpp index 3ca350243..e87016429 100644 --- a/src/video_core/renderer_base.cpp +++ b/src/video_core/renderer_base.cpp @@ -4,18 +4,23 @@ #include <memory> #include "core/frontend/emu_window.h" +#include "core/settings.h" #include "video_core/renderer_base.h" #include "video_core/renderer_opengl/gl_rasterizer.h" namespace VideoCore { -RendererBase::RendererBase(EmuWindow& window) : render_window{window} {} +RendererBase::RendererBase(EmuWindow& window) : render_window{window} { + RefreshBaseSettings(); +} + RendererBase::~RendererBase() = default; -void RendererBase::UpdateCurrentFramebufferLayout() { - const Layout::FramebufferLayout& layout = render_window.GetFramebufferLayout(); +void RendererBase::RefreshBaseSettings() { + RefreshRasterizerSetting(); + UpdateCurrentFramebufferLayout(); - render_window.UpdateCurrentFramebufferLayout(layout.width, layout.height); + renderer_settings.use_framelimiter = Settings::values.toggle_framelimit; } void RendererBase::RefreshRasterizerSetting() { @@ -24,4 +29,10 @@ void RendererBase::RefreshRasterizerSetting() { } } +void RendererBase::UpdateCurrentFramebufferLayout() { + const Layout::FramebufferLayout& layout = render_window.GetFramebufferLayout(); + + render_window.UpdateCurrentFramebufferLayout(layout.width, layout.height); +} + } // namespace VideoCore |