mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 15:05: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() {
|
void CMonitor::clearState() {
|
||||||
wlr_output_state_finish(&outputState);
|
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};
|
outputState = {0};
|
||||||
wlr_output_state_init(&outputState);
|
wlr_output_state_init(&outputState);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue