diff options
author | Fernando S <fsahmkow27@gmail.com> | 2021-09-11 23:11:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-11 23:11:32 +0200 |
commit | be4e1929033aff005472163164ab0ccc80d81c19 (patch) | |
tree | b3b3f62a3b3e8e3c329ee35411d8d18e20a835ab /src/video_core/video_core.cpp | |
parent | Merge pull request #6901 from ameerj/vk-clear-bits (diff) | |
parent | h264: Lower max_num_ref_frames (diff) | |
download | yuzu-be4e1929033aff005472163164ab0ccc80d81c19.tar yuzu-be4e1929033aff005472163164ab0ccc80d81c19.tar.gz yuzu-be4e1929033aff005472163164ab0ccc80d81c19.tar.bz2 yuzu-be4e1929033aff005472163164ab0ccc80d81c19.tar.lz yuzu-be4e1929033aff005472163164ab0ccc80d81c19.tar.xz yuzu-be4e1929033aff005472163164ab0ccc80d81c19.tar.zst yuzu-be4e1929033aff005472163164ab0ccc80d81c19.zip |
Diffstat (limited to 'src/video_core/video_core.cpp')
-rw-r--r-- | src/video_core/video_core.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/video_core.cpp b/src/video_core/video_core.cpp index 3b575db4d..cae543a51 100644 --- a/src/video_core/video_core.cpp +++ b/src/video_core/video_core.cpp @@ -37,7 +37,8 @@ std::unique_ptr<VideoCore::RendererBase> CreateRenderer( namespace VideoCore { std::unique_ptr<Tegra::GPU> CreateGPU(Core::Frontend::EmuWindow& emu_window, Core::System& system) { - const bool use_nvdec = Settings::values.use_nvdec_emulation.GetValue(); + const auto nvdec_value = Settings::values.nvdec_emulation.GetValue(); + const bool use_nvdec = nvdec_value != Settings::NvdecEmulation::Off; const bool use_async = Settings::values.use_asynchronous_gpu_emulation.GetValue(); auto gpu = std::make_unique<Tegra::GPU>(system, use_async, use_nvdec); auto context = emu_window.CreateSharedContext(); |