summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2019-11-28 00:35:31 +0100
committerGitHub <noreply@github.com>2019-11-28 00:35:31 +0100
commit913d0bb269264afc5e2b4f5d52baeeb8bf0af5ca (patch)
treee043806648f5d7b202649461f45d1f0ac2d91890 /src/video_core
parentMerge pull request #3172 from lioncash/pragma (diff)
parentvideo_core/gpu_thread: Tidy up SwapBuffers() (diff)
downloadyuzu-913d0bb269264afc5e2b4f5d52baeeb8bf0af5ca.tar
yuzu-913d0bb269264afc5e2b4f5d52baeeb8bf0af5ca.tar.gz
yuzu-913d0bb269264afc5e2b4f5d52baeeb8bf0af5ca.tar.bz2
yuzu-913d0bb269264afc5e2b4f5d52baeeb8bf0af5ca.tar.lz
yuzu-913d0bb269264afc5e2b4f5d52baeeb8bf0af5ca.tar.xz
yuzu-913d0bb269264afc5e2b4f5d52baeeb8bf0af5ca.tar.zst
yuzu-913d0bb269264afc5e2b4f5d52baeeb8bf0af5ca.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/gpu_thread.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp
index 3efa3d8d0..2cdf1aa7f 100644
--- a/src/video_core/gpu_thread.cpp
+++ b/src/video_core/gpu_thread.cpp
@@ -71,8 +71,7 @@ void ThreadManager::SubmitList(Tegra::CommandList&& entries) {
}
void ThreadManager::SwapBuffers(const Tegra::FramebufferConfig* framebuffer) {
- PushCommand(SwapBuffersCommand(framebuffer ? *framebuffer
- : std::optional<const Tegra::FramebufferConfig>{}));
+ PushCommand(SwapBuffersCommand(framebuffer ? std::make_optional(*framebuffer) : std::nullopt));
}
void ThreadManager::FlushRegion(CacheAddr addr, u64 size) {