diff options
| author | 2020-12-05 00:48:08 -0800 | |
|---|---|---|
| committer | 2020-12-05 00:48:08 -0800 | |
| commit | e6a896c4bdf9cc47c2002c115c9ff280e540fd1b (patch) | |
| tree | e5cd397cb3a11f1529f38ed8fa0a0185d07becaa /src/video_core/gpu.cpp | |
| parent | Merge pull request #5127 from FearlessTobi/port-5617 (diff) | |
| parent | video_core: Resolve more variable shadowing scenarios (diff) | |
| download | yuzu-e6a896c4bdf9cc47c2002c115c9ff280e540fd1b.tar.gz yuzu-e6a896c4bdf9cc47c2002c115c9ff280e540fd1b.tar.xz yuzu-e6a896c4bdf9cc47c2002c115c9ff280e540fd1b.zip | |
Merge pull request #5124 from lioncash/video-shadow
video_core: Resolve more variable shadowing scenarios
Diffstat (limited to 'src/video_core/gpu.cpp')
| -rw-r--r-- | src/video_core/gpu.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp index e91f52938..964b3f3dc 100644 --- a/src/video_core/gpu.cpp +++ b/src/video_core/gpu.cpp | |||
| @@ -232,8 +232,12 @@ void GPU::CallMultiMethod(u32 method, u32 subchannel, const u32* base_start, u32 | |||
| 232 | CallEngineMultiMethod(method, subchannel, base_start, amount, methods_pending); | 232 | CallEngineMultiMethod(method, subchannel, base_start, amount, methods_pending); |
| 233 | } else { | 233 | } else { |
| 234 | for (std::size_t i = 0; i < amount; i++) { | 234 | for (std::size_t i = 0; i < amount; i++) { |
| 235 | CallPullerMethod( | 235 | CallPullerMethod(MethodCall{ |
| 236 | {method, base_start[i], subchannel, methods_pending - static_cast<u32>(i)}); | 236 | method, |
| 237 | base_start[i], | ||
| 238 | subchannel, | ||
| 239 | methods_pending - static_cast<u32>(i), | ||
| 240 | }); | ||
| 237 | } | 241 | } |
| 238 | } | 242 | } |
| 239 | } | 243 | } |