Skip to content
Snippets Groups Projects
Commit aed6d8be authored by Lioncash's avatar Lioncash
Browse files

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.
parent 6df6caaf
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment