diff options
author | vaxerski <[email protected]> | 2023-09-22 00:21:07 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-09-22 00:21:07 +0100 |
commit | 2e1842b5ff140bc81a604c663482221d86c30cff (patch) | |
tree | 1cde8bf33b7a5e727467289b80533142d763204b | |
parent | b662215fad037e41872d5b820a70577752469520 (diff) | |
download | Hyprland-2e1842b5ff140bc81a604c663482221d86c30cff.tar.gz Hyprland-2e1842b5ff140bc81a604c663482221d86c30cff.zip |
screencopy: log renderer_begin_with_buffer failures
-rw-r--r-- | src/protocols/Screencopy.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/protocols/Screencopy.cpp b/src/protocols/Screencopy.cpp index 40eb97f3..61f76285 100644 --- a/src/protocols/Screencopy.cpp +++ b/src/protocols/Screencopy.cpp @@ -423,6 +423,7 @@ bool CScreencopyProtocolManager::copyFrameShm(SScreencopyFrame* frame, timespec* return false; if (!wlr_renderer_begin_with_buffer(g_pCompositor->m_sWLRRenderer, m_pLastMonitorBackBuffer)) { + Debug::log(ERR, "[sc] shm: Client requested a copy to a buffer that failed to pass wlr_renderer_begin_with_buffer"); wlr_buffer_end_data_ptr_access(frame->buffer); return false; } @@ -445,6 +446,7 @@ bool CScreencopyProtocolManager::copyFrameDmabuf(SScreencopyFrame* frame) { wlr_matrix_scale(glMatrix, frame->pMonitor->vecPixelSize.x, frame->pMonitor->vecPixelSize.y); if (!wlr_renderer_begin_with_buffer(g_pCompositor->m_sWLRRenderer, frame->buffer)) { + Debug::log(ERR, "[sc] dmabuf: Client requested a copy to a buffer that failed to pass wlr_renderer_begin_with_buffer"); wlr_texture_destroy(sourceTex); return false; } |