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:
parent
0cd6f5cd06
commit
3bf97e87e5
1 changed files with 4 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue