summaryrefslogtreecommitdiff
path: root/src/video_core/gpu_thread.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2019-05-09 18:39:18 -0400
committerGravatar Lioncash2019-05-09 18:39:21 -0400
commitba165b10926de0e5f4280c621dae87e30ce29c97 (patch)
tree1e3913cb375befcec7714c5bd79857333058ea4b /src/video_core/gpu_thread.cpp
parentvideo_core/textures/astc: Remove unused variables (diff)
downloadyuzu-ba165b10926de0e5f4280c621dae87e30ce29c97.tar.gz
yuzu-ba165b10926de0e5f4280c621dae87e30ce29c97.tar.xz
yuzu-ba165b10926de0e5f4280c621dae87e30ce29c97.zip
video_core/gpu_thread: Remove unused local variable
Instead of retrieving the data from the std::variant instance, we can just check if the variant contains that type of data. This is essentially the same behavior, only it returns a bool indicating whether or not the type in the variant is currently active, instead of actually retrieving the data.
Diffstat (limited to 'src/video_core/gpu_thread.cpp')
-rw-r--r--src/video_core/gpu_thread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp
index c9a2077de..03856013f 100644
--- a/src/video_core/gpu_thread.cpp
+++ b/src/video_core/gpu_thread.cpp
@@ -44,7 +44,7 @@ static void RunThread(VideoCore::RendererBase& renderer, Tegra::DmaPusher& dma_p
44 renderer.Rasterizer().FlushRegion(data->addr, data->size); 44 renderer.Rasterizer().FlushRegion(data->addr, data->size);
45 } else if (const auto data = std::get_if<InvalidateRegionCommand>(&next.data)) { 45 } else if (const auto data = std::get_if<InvalidateRegionCommand>(&next.data)) {
46 renderer.Rasterizer().InvalidateRegion(data->addr, data->size); 46 renderer.Rasterizer().InvalidateRegion(data->addr, data->size);
47 } else if (const auto data = std::get_if<EndProcessingCommand>(&next.data)) { 47 } else if (std::holds_alternative<EndProcessingCommand>(next.data)) {
48 return; 48 return;
49 } else { 49 } else {
50 UNREACHABLE(); 50 UNREACHABLE();