mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2025-01-13 08:01:05 +01:00
Move render state assertion
Crashed when powering off an output
This commit is contained in:
parent
e0b6d32209
commit
5f478622e5
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue