mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-18 22:29:50 +01:00
monitor: avoid crash on released buffer in surf
This commit is contained in:
parent
a17850e41c
commit
08cc063e17
1 changed files with 1 additions and 1 deletions
|
@ -845,7 +845,7 @@ bool CMonitor::attemptDirectScanout() {
|
|||
return false;
|
||||
|
||||
// we can't scanout shm buffers.
|
||||
if (!PSURFACE->current.buffer || !PSURFACE->current.texture || !PSURFACE->current.texture->m_pEglImage /* dmabuf */)
|
||||
if (!PSURFACE->current.buffer || !PSURFACE->current.buffer->buffer || !PSURFACE->current.texture || !PSURFACE->current.texture->m_pEglImage /* dmabuf */)
|
||||
return false;
|
||||
|
||||
Debug::log(TRACE, "attemptDirectScanout: surface {:x} passed, will attempt", (uintptr_t)PSURFACE.get());
|
||||
|
|
Loading…
Reference in a new issue