Skip to content

Commit addcbc5

Browse files
committed
kms: Don't try to restore modifiers, if we don't have any surfaces
1 parent ff22b98 commit addcbc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/kms/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ impl KmsState {
842842
.collect::<Vec<_>>(),
843843
);
844844

845-
{
845+
if !device.surfaces.is_empty() {
846846
let mut renderer = self
847847
.api
848848
.single_renderer(&device.render_node)

0 commit comments

Comments
 (0)