diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-08-08 22:56:40 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-08-16 20:40:53 +0200 |
commit | cd016d3cb5191b9f4f2756e440a6aa67e577c414 (patch) | |
tree | e96e08167a350f05feb9c081950be305612d9113 /src/video_core/video_core.cpp | |
parent | codec: Improve libav memory alloc and cleanup (diff) | |
download | yuzu-cd016d3cb5191b9f4f2756e440a6aa67e577c414.tar yuzu-cd016d3cb5191b9f4f2756e440a6aa67e577c414.tar.gz yuzu-cd016d3cb5191b9f4f2756e440a6aa67e577c414.tar.bz2 yuzu-cd016d3cb5191b9f4f2756e440a6aa67e577c414.tar.lz yuzu-cd016d3cb5191b9f4f2756e440a6aa67e577c414.tar.xz yuzu-cd016d3cb5191b9f4f2756e440a6aa67e577c414.tar.zst yuzu-cd016d3cb5191b9f4f2756e440a6aa67e577c414.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(); |