Skip to content

Commit

Permalink
kms: Don't try to restore modifiers, if we don't have any surfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Jan 7, 2025
1 parent ff22b98 commit addcbc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/kms/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ impl KmsState {
.collect::<Vec<_>>(),
);

{
if !device.surfaces.is_empty() {
let mut renderer = self
.api
.single_renderer(&device.render_node)
Expand Down

0 comments on commit addcbc5

Please sign in to comment.