summaryrefslogtreecommitdiffstats
path: root/src/video_core/gpu_synch.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-06-11 05:58:57 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-08-22 06:51:45 +0200
commitda53bcee60fced902479b72b40ed26b099fa9938 (patch)
treeb83232ad60b7725090b31bd3e347c9df774ced40 /src/video_core/gpu_synch.cpp
parentMerge pull request #4536 from lioncash/semi3 (diff)
downloadyuzu-da53bcee60fced902479b72b40ed26b099fa9938.tar
yuzu-da53bcee60fced902479b72b40ed26b099fa9938.tar.gz
yuzu-da53bcee60fced902479b72b40ed26b099fa9938.tar.bz2
yuzu-da53bcee60fced902479b72b40ed26b099fa9938.tar.lz
yuzu-da53bcee60fced902479b72b40ed26b099fa9938.tar.xz
yuzu-da53bcee60fced902479b72b40ed26b099fa9938.tar.zst
yuzu-da53bcee60fced902479b72b40ed26b099fa9938.zip
Diffstat (limited to 'src/video_core/gpu_synch.cpp')
-rw-r--r--src/video_core/gpu_synch.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/video_core/gpu_synch.cpp b/src/video_core/gpu_synch.cpp
index aaeb9811d..1ca47ddef 100644
--- a/src/video_core/gpu_synch.cpp
+++ b/src/video_core/gpu_synch.cpp
@@ -7,20 +7,18 @@
namespace VideoCommon {
-GPUSynch::GPUSynch(Core::System& system, std::unique_ptr<VideoCore::RendererBase>&& renderer,
- std::unique_ptr<Core::Frontend::GraphicsContext>&& context)
- : GPU(system, std::move(renderer), false), context{std::move(context)} {}
+GPUSynch::GPUSynch(Core::System& system) : GPU{system, false} {}
GPUSynch::~GPUSynch() = default;
void GPUSynch::Start() {}
void GPUSynch::ObtainContext() {
- context->MakeCurrent();
+ renderer->Context().MakeCurrent();
}
void GPUSynch::ReleaseContext() {
- context->DoneCurrent();
+ renderer->Context().DoneCurrent();
}
void GPUSynch::PushGPUEntries(Tegra::CommandList&& entries) {