diff --git a/src/backend/kms/mod.rs b/src/backend/kms/mod.rs index 0b350e18..f85405d3 100644 --- a/src/backend/kms/mod.rs +++ b/src/backend/kms/mod.rs @@ -842,7 +842,7 @@ impl KmsState { .collect::>(), ); - { + if !device.surfaces.is_empty() { let mut renderer = self .api .single_renderer(&device.render_node)