diff options
author | Lioncash <mathew1800@gmail.com> | 2019-05-09 18:39:18 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-05-09 18:39:21 -0400 |
commit | ba165b10926de0e5f4280c621dae87e30ce29c97 (patch) | |
tree | 1e3913cb375befcec7714c5bd79857333058ea4b /src | |
parent | c56d893e772617844d7553a79e3a89a6d0a73519 (diff) |
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')
-rw-r--r-- | src/video_core/gpu_thread.cpp | 2 |
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 renderer.Rasterizer().FlushRegion(data->addr, data->size); } else if (const auto data = std::get_if<InvalidateRegionCommand>(&next.data)) { renderer.Rasterizer().InvalidateRegion(data->addr, data->size); - } else if (const auto data = std::get_if<EndProcessingCommand>(&next.data)) { + } else if (std::holds_alternative<EndProcessingCommand>(next.data)) { return; } else { UNREACHABLE(); |