mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-25 20:09:48 +01:00
rollback on fail
This commit is contained in:
parent
e5854f8514
commit
c1adf83484
1 changed files with 3 additions and 0 deletions
|
@ -1421,6 +1421,9 @@ void CHyprRenderer::renderMonitor(CMonitor* pMonitor) {
|
||||||
Aquamarine::eOutputPresentationMode::AQ_OUTPUT_PRESENTATION_VSYNC);
|
Aquamarine::eOutputPresentationMode::AQ_OUTPUT_PRESENTATION_VSYNC);
|
||||||
|
|
||||||
if (!pMonitor->state.commit()) {
|
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();
|
pMonitor->damage.damageEntire();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue