backends/wayland: Guard against failing to create EGLSwapchain
BUG: 478864
This commit is contained in:
parent
d33ab542db
commit
bb354de90e
1 changed files with 7 additions and 0 deletions
|
@ -186,9 +186,16 @@ std::optional<OutputLayerBeginFrameInfo> WaylandEglCursorLayer::beginFrame()
|
|||
return std::nullopt;
|
||||
}
|
||||
m_swapchain = EglSwapchain::create(m_backend->graphicsBufferAllocator(), m_backend->contextObject(), bufferSize, format, modifiers);
|
||||
if (!m_swapchain) {
|
||||
return std::nullopt;
|
||||
}
|
||||
}
|
||||
|
||||
m_buffer = m_swapchain->acquire();
|
||||
if (!m_buffer) {
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
if (!m_query) {
|
||||
m_query = std::make_unique<GLRenderTimeQuery>();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue