rollback on fail

This commit is contained in:
Vaxry 2024-07-04 23:15:05 +02:00
parent bba7882cee
commit 274cd21d63

View file

@ -1418,6 +1418,9 @@ void CHyprRenderer::renderMonitor(CMonitor* pMonitor) {
Aquamarine::eOutputPresentationMode::AQ_OUTPUT_PRESENTATION_VSYNC);
if (!pMonitor->state.commit()) {
// rollback the buffer to avoid writing to the front buffer that is being
// displayed
pMonitor->output->swapchain->rollback();
pMonitor->damage.damageEntire();
return;
}