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 | 56ccfcdb4bc7da717742a451a0dcfa3739261f7f (patch) | |
| tree | 1e3913cb375befcec7714c5bd79857333058ea4b /src | |
| parent | d6db5ebae2f466a90c2212645c843b514c6f7384 (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 c9a2077de4..03856013fb 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(); |
