diff options
author | lat9nq <lat9nq@virginia.edu> | 2020-07-10 04:42:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-10 04:42:09 +0200 |
commit | 63d23835ef4445b3a010cc0e8b1e73ebe012ac08 (patch) | |
tree | b243c1167280dbf2e3f5af4597b6638fb707f091 /src/video_core/video_core.cpp | |
parent | Merge pull request #4281 from RealJohnGalt/linkfix2 (diff) | |
download | yuzu-63d23835ef4445b3a010cc0e8b1e73ebe012ac08.tar yuzu-63d23835ef4445b3a010cc0e8b1e73ebe012ac08.tar.gz yuzu-63d23835ef4445b3a010cc0e8b1e73ebe012ac08.tar.bz2 yuzu-63d23835ef4445b3a010cc0e8b1e73ebe012ac08.tar.lz yuzu-63d23835ef4445b3a010cc0e8b1e73ebe012ac08.tar.xz yuzu-63d23835ef4445b3a010cc0e8b1e73ebe012ac08.tar.zst yuzu-63d23835ef4445b3a010cc0e8b1e73ebe012ac08.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/video_core.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/video_core.cpp b/src/video_core/video_core.cpp index f60bdc60a..45f360bdd 100644 --- a/src/video_core/video_core.cpp +++ b/src/video_core/video_core.cpp @@ -19,7 +19,7 @@ namespace { std::unique_ptr<VideoCore::RendererBase> CreateRenderer(Core::Frontend::EmuWindow& emu_window, Core::System& system, Core::Frontend::GraphicsContext& context) { - switch (Settings::values.renderer_backend) { + switch (Settings::values.renderer_backend.GetValue()) { case Settings::RendererBackend::OpenGL: return std::make_unique<OpenGL::RendererOpenGL>(emu_window, system, context); #ifdef HAS_VULKAN @@ -42,7 +42,7 @@ std::unique_ptr<Tegra::GPU> CreateGPU(Core::Frontend::EmuWindow& emu_window, Cor return nullptr; } - if (Settings::values.use_asynchronous_gpu_emulation) { + if (Settings::values.use_asynchronous_gpu_emulation.GetValue()) { return std::make_unique<VideoCommon::GPUAsynch>(system, std::move(renderer), std::move(context)); } @@ -51,8 +51,8 @@ std::unique_ptr<Tegra::GPU> CreateGPU(Core::Frontend::EmuWindow& emu_window, Cor u16 GetResolutionScaleFactor(const RendererBase& renderer) { return static_cast<u16>( - Settings::values.resolution_factor != 0 - ? Settings::values.resolution_factor + Settings::values.resolution_factor.GetValue() != 0 + ? Settings::values.resolution_factor.GetValue() : renderer.GetRenderWindow().GetFramebufferLayout().GetScalingRatio()); } |