aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/gpu_thread.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-11-27 17:46:07 -0500
committerLioncash <mathew1800@gmail.com>2019-11-27 17:46:11 -0500
commitab484b42b963f8ae27cce0fc3f1ac03603d44e10 (patch)
treefc9a85b4512d15182aa8b4987dc4815171527b5f /src/video_core/gpu_thread.cpp
parent6fbfa5bb894761e10fcada788714e3e4659e1df4 (diff)
video_core/gpu_thread: Tidy up SwapBuffers()
We can just use std::nullopt and std::make_optional to make this a little bit less noisy.
Diffstat (limited to 'src/video_core/gpu_thread.cpp')
-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 3efa3d8d0c..2cdf1aa7f7 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) {