diff options
author | Vaxry <[email protected]> | 2024-10-19 23:48:25 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-10-19 23:48:25 +0100 |
commit | 08cc063e175e48cea44d26b7e3762f4b8611f0c5 (patch) | |
tree | e3f7fcbc4e99017821b9e2f361aa2d1b4781b656 /src/helpers | |
parent | a17850e41cabb455880b43032cf65041cd77ef25 (diff) | |
download | Hyprland-08cc063e175e48cea44d26b7e3762f4b8611f0c5.tar.gz Hyprland-08cc063e175e48cea44d26b7e3762f4b8611f0c5.zip |
monitor: avoid crash on released buffer in surf
Diffstat (limited to 'src/helpers')
-rw-r--r-- | src/helpers/Monitor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index 6ded5ea4..d8889585 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -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()); |