mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 16:25:59 +01:00
monitor: don't call output_state_finish on buffer-less state clears
ref #4546
This commit is contained in:
parent
3e93fdf779
commit
9002657bcc
1 changed files with 5 additions and 1 deletions
|
@ -684,7 +684,11 @@ void CMonitor::updateMatrix() {
|
|||
}
|
||||
|
||||
void CMonitor::clearState() {
|
||||
if (outputState.buffer)
|
||||
wlr_output_state_finish(&outputState);
|
||||
else // free(gamma_lut) should be unnecessary as it shouldn't be non-null for buffer-less commits?
|
||||
pixman_region32_fini(&outputState.damage);
|
||||
|
||||
outputState = {0};
|
||||
wlr_output_state_init(&outputState);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue