backends/x11/standalone: add a nullptr check in the vblank handler

It can be called without a previous presentation in some cases

BUG: 488112
This commit is contained in:
Xaver Hugl 2024-06-06 16:51:22 +02:00
parent 0cd6f5cd06
commit 3bf97e87e5

View file

@ -714,8 +714,10 @@ void GlxBackend::present(Output *output, const std::shared_ptr<OutputFrame> &fra
void GlxBackend::vblank(std::chrono::nanoseconds timestamp)
{
m_frame->presented(timestamp, PresentationMode::VSync);
m_frame.reset();
if (m_frame) {
m_frame->presented(timestamp, PresentationMode::VSync);
m_frame.reset();
}
}
bool GlxBackend::makeCurrent()