diff options
author | Lioncash <mathew1800@gmail.com> | 2018-08-02 02:59:42 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-08-02 03:40:30 +0200 |
commit | 0f2ac928f291101bd74aac661cff7d14dfa8c984 (patch) | |
tree | 39d1ba26d25bd06874b58990c5deb4d1f4ed252d /src/video_core/renderer_base.cpp | |
parent | Merge pull request #885 from greggameplayer/R32-Float (diff) | |
download | yuzu-0f2ac928f291101bd74aac661cff7d14dfa8c984.tar yuzu-0f2ac928f291101bd74aac661cff7d14dfa8c984.tar.gz yuzu-0f2ac928f291101bd74aac661cff7d14dfa8c984.tar.bz2 yuzu-0f2ac928f291101bd74aac661cff7d14dfa8c984.tar.lz yuzu-0f2ac928f291101bd74aac661cff7d14dfa8c984.tar.xz yuzu-0f2ac928f291101bd74aac661cff7d14dfa8c984.tar.zst yuzu-0f2ac928f291101bd74aac661cff7d14dfa8c984.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_base.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/video_core/renderer_base.cpp b/src/video_core/renderer_base.cpp index 30075b23c..dbe3edf09 100644 --- a/src/video_core/renderer_base.cpp +++ b/src/video_core/renderer_base.cpp @@ -2,14 +2,22 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. -#include <atomic> #include <memory> +#include "core/frontend/emu_window.h" #include "video_core/renderer_base.h" #include "video_core/renderer_opengl/gl_rasterizer.h" -#include "video_core/video_core.h" + +RendererBase::RendererBase(EmuWindow& window) : render_window{window} {} +RendererBase::~RendererBase() = default; + +void RendererBase::UpdateCurrentFramebufferLayout() { + const Layout::FramebufferLayout& layout = render_window.GetFramebufferLayout(); + + render_window.UpdateCurrentFramebufferLayout(layout.width, layout.height); +} void RendererBase::RefreshRasterizerSetting() { if (rasterizer == nullptr) { - rasterizer = std::make_unique<RasterizerOpenGL>(); + rasterizer = std::make_unique<RasterizerOpenGL>(render_window); } } |