Move render state assertion

Crashed when powering off an output
This commit is contained in:
Ottatop 2024-06-12 20:31:43 -05:00
parent e0b6d32209
commit 5f478622e5

View file

@ -1378,8 +1378,6 @@ impl Udev {
return;
};
assert!(matches!(surface.render_state, RenderState::Scheduled(_)));
if !pinnacle.outputs.contains_key(output) {
surface.render_state = RenderState::Idle;
return;
@ -1392,6 +1390,8 @@ impl Udev {
return;
}
assert!(matches!(surface.render_state, RenderState::Scheduled(_)));
// TODO get scale from the rendersurface when supporting HiDPI
let frame = self.pointer_image.get_image(
1,