kms: Don't try to restore modifiers, if we don't have any surfaces

This commit is contained in:
Victoria Brekenfeld 2025-01-07 17:38:49 +01:00
parent ff22b98ec7
commit addcbc5039

View file

@ -842,7 +842,7 @@ impl KmsState {
.collect::<Vec<_>>(),
);
{
if !device.surfaces.is_empty() {
let mut renderer = self
.api
.single_renderer(&device.render_node)