summaryrefslogtreecommitdiffstats
path: root/src/video_core/gpu_thread.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-07-21 06:52:27 +0200
committerLioncash <mathew1800@gmail.com>2020-07-21 06:57:25 +0200
commite17fb5ee97dab16c73b017393b6544847e9aef67 (patch)
tree05ac8d70e8516d27062f4940e64d905c95c2b6c5 /src/video_core/gpu_thread.cpp
parentMerge pull request #4376 from ogniK5377/dark-wait-tree (diff)
downloadyuzu-e17fb5ee97dab16c73b017393b6544847e9aef67.tar
yuzu-e17fb5ee97dab16c73b017393b6544847e9aef67.tar.gz
yuzu-e17fb5ee97dab16c73b017393b6544847e9aef67.tar.bz2
yuzu-e17fb5ee97dab16c73b017393b6544847e9aef67.tar.lz
yuzu-e17fb5ee97dab16c73b017393b6544847e9aef67.tar.xz
yuzu-e17fb5ee97dab16c73b017393b6544847e9aef67.tar.zst
yuzu-e17fb5ee97dab16c73b017393b6544847e9aef67.zip
Diffstat (limited to 'src/video_core/gpu_thread.cpp')
-rw-r--r--src/video_core/gpu_thread.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp
index 738c6f0c1..bf761abf2 100644
--- a/src/video_core/gpu_thread.cpp
+++ b/src/video_core/gpu_thread.cpp
@@ -44,9 +44,9 @@ static void RunThread(Core::System& system, VideoCore::RendererBase& renderer,
dma_pusher.DispatchCalls();
} else if (const auto data = std::get_if<SwapBuffersCommand>(&next.data)) {
renderer.SwapBuffers(data->framebuffer ? &*data->framebuffer : nullptr);
- } else if (const auto data = std::get_if<OnCommandListEndCommand>(&next.data)) {
+ } else if (std::holds_alternative<OnCommandListEndCommand>(next.data)) {
renderer.Rasterizer().ReleaseFences();
- } else if (const auto data = std::get_if<GPUTickCommand>(&next.data)) {
+ } else if (std::holds_alternative<GPUTickCommand>(next.data)) {
system.GPU().TickWork();
} else if (const auto data = std::get_if<FlushRegionCommand>(&next.data)) {
renderer.Rasterizer().FlushRegion(data->addr, data->size);