kms: Don't try to restore modifiers, if we don't have any surfaces
This commit is contained in:
parent
ff22b98ec7
commit
addcbc5039
1 changed files with 1 additions and 1 deletions
|
|
@ -842,7 +842,7 @@ impl KmsState {
|
|||
.collect::<Vec<_>>(),
|
||||
);
|
||||
|
||||
{
|
||||
if !device.surfaces.is_empty() {
|
||||
let mut renderer = self
|
||||
.api
|
||||
.single_renderer(&device.render_node)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue