diff --git a/src/backends/x11/standalone/x11_standalone_glx_backend.cpp b/src/backends/x11/standalone/x11_standalone_glx_backend.cpp index f8c209d47d..6f4f6b185d 100644 --- a/src/backends/x11/standalone/x11_standalone_glx_backend.cpp +++ b/src/backends/x11/standalone/x11_standalone_glx_backend.cpp @@ -714,8 +714,10 @@ void GlxBackend::present(Output *output, const std::shared_ptr &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()