diff options
| author | 2019-10-12 09:50:55 -0400 | |
|---|---|---|
| committer | 2019-10-15 16:39:30 -0400 | |
| commit | b25b94400e480c598ddf57f7d8cddd96fa234693 (patch) | |
| tree | df4de2d6ecf028b42976a6689b03a25272fd8d11 /src/video_core/gpu.cpp | |
| parent | bcat: Remove use of global system accessors (diff) | |
| download | yuzu-b25b94400e480c598ddf57f7d8cddd96fa234693.tar.gz yuzu-b25b94400e480c598ddf57f7d8cddd96fa234693.tar.xz yuzu-b25b94400e480c598ddf57f7d8cddd96fa234693.zip | |
video_core/gpu: Remove use of the global system accessor
We can just make use of the reference member variable instead of
accessing the global system instance.
Diffstat (limited to 'src/video_core/gpu.cpp')
| -rw-r--r-- | src/video_core/gpu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp index 76cfe8107..fbb9105d6 100644 --- a/src/video_core/gpu.cpp +++ b/src/video_core/gpu.cpp | |||
| @@ -326,7 +326,7 @@ void GPU::ProcessSemaphoreTriggerMethod() { | |||
| 326 | block.sequence = regs.semaphore_sequence; | 326 | block.sequence = regs.semaphore_sequence; |
| 327 | // TODO(Kmather73): Generate a real GPU timestamp and write it here instead of | 327 | // TODO(Kmather73): Generate a real GPU timestamp and write it here instead of |
| 328 | // CoreTiming | 328 | // CoreTiming |
| 329 | block.timestamp = Core::System::GetInstance().CoreTiming().GetTicks(); | 329 | block.timestamp = system.CoreTiming().GetTicks(); |
| 330 | memory_manager->WriteBlock(regs.semaphore_address.SemaphoreAddress(), &block, | 330 | memory_manager->WriteBlock(regs.semaphore_address.SemaphoreAddress(), &block, |
| 331 | sizeof(block)); | 331 | sizeof(block)); |
| 332 | } else { | 332 | } else { |