kms: Don't try to render inactive outputs
This commit is contained in:
parent
b87049bb7c
commit
605bb63a4d
2 changed files with 2 additions and 0 deletions
|
|
@ -625,6 +625,7 @@ impl Device {
|
|||
let output_map = self
|
||||
.surfaces
|
||||
.iter()
|
||||
.filter(|(_, s)| s.is_active())
|
||||
.map(|(crtc, surface)| (*crtc, surface.output.clone()))
|
||||
.collect::<HashMap<_, _>>();
|
||||
|
||||
|
|
|
|||
|
|
@ -679,6 +679,7 @@ impl KmsState {
|
|||
let output_map = device
|
||||
.surfaces
|
||||
.iter()
|
||||
.filter(|(_, s)| s.is_active())
|
||||
.map(|(crtc, surface)| (*crtc, surface.output.clone()))
|
||||
.collect::<HashMap<_, _>>();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue