diff options
| author | 2019-08-21 01:55:25 -0300 | |
|---|---|---|
| committer | 2019-08-21 01:55:25 -0300 | |
| commit | 9a76e94b3d854fadeac19a097538a24f9b3fb7b7 (patch) | |
| tree | 406d375b3d95ccc95da446959a2e4d75d40b3e23 /src/video_core/gpu_synch.cpp | |
| parent | Merge pull request #2747 from lioncash/audio (diff) | |
| download | yuzu-9a76e94b3d854fadeac19a097538a24f9b3fb7b7.tar.gz yuzu-9a76e94b3d854fadeac19a097538a24f9b3fb7b7.tar.xz yuzu-9a76e94b3d854fadeac19a097538a24f9b3fb7b7.zip | |
gpu: Change optional<reference_wrapper<T>> to T* for FramebufferConfig
Diffstat (limited to 'src/video_core/gpu_synch.cpp')
| -rw-r--r-- | src/video_core/gpu_synch.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/gpu_synch.cpp b/src/video_core/gpu_synch.cpp index d4ead9c47..d48221077 100644 --- a/src/video_core/gpu_synch.cpp +++ b/src/video_core/gpu_synch.cpp | |||
| @@ -19,9 +19,8 @@ void GPUSynch::PushGPUEntries(Tegra::CommandList&& entries) { | |||
| 19 | dma_pusher->DispatchCalls(); | 19 | dma_pusher->DispatchCalls(); |
| 20 | } | 20 | } |
| 21 | 21 | ||
| 22 | void GPUSynch::SwapBuffers( | 22 | void GPUSynch::SwapBuffers(const Tegra::FramebufferConfig* framebuffer) { |
| 23 | std::optional<std::reference_wrapper<const Tegra::FramebufferConfig>> framebuffer) { | 23 | renderer.SwapBuffers(framebuffer); |
| 24 | renderer.SwapBuffers(std::move(framebuffer)); | ||
| 25 | } | 24 | } |
| 26 | 25 | ||
| 27 | void GPUSynch::FlushRegion(CacheAddr addr, u64 size) { | 26 | void GPUSynch::FlushRegion(CacheAddr addr, u64 size) { |