screencopy: fix invalid damage being used for final copy in dma

This commit is contained in:
Vaxry 2024-02-19 20:05:51 +00:00
parent d62e7a5125
commit e793f10b8b

View File

@ -531,6 +531,8 @@ bool CScreencopyProtocolManager::copyFrameDmabuf(SScreencopyFrame* frame) {
g_pHyprOpenGL->renderTexture(sourceTex, &monbox, 1);
g_pHyprOpenGL->setMonitorTransformEnabled(true);
frame->pMonitor->lastFrameDamage = fakeDamage;
g_pHyprRenderer->endRender();
wlr_texture_destroy(sourceTex);