summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-11-27 23:46:07 +0100
committerLioncash <mathew1800@gmail.com>2019-11-27 23:46:11 +0100
commitaed6d8bef57f002f5ca6345421434631eda9fd27 (patch)
treefc9a85b4512d15182aa8b4987dc4815171527b5f
parentMerge pull request #3143 from ReinUsesLisp/indexing-bug (diff)
downloadyuzu-aed6d8bef57f002f5ca6345421434631eda9fd27.tar
yuzu-aed6d8bef57f002f5ca6345421434631eda9fd27.tar.gz
yuzu-aed6d8bef57f002f5ca6345421434631eda9fd27.tar.bz2
yuzu-aed6d8bef57f002f5ca6345421434631eda9fd27.tar.lz
yuzu-aed6d8bef57f002f5ca6345421434631eda9fd27.tar.xz
yuzu-aed6d8bef57f002f5ca6345421434631eda9fd27.tar.zst
yuzu-aed6d8bef57f002f5ca6345421434631eda9fd27.zip
-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) {