mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 23:26:00 +01:00
rollback on fail
This commit is contained in:
parent
bba7882cee
commit
274cd21d63
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue