autocommit 2022-04-14 16:06:11 CEST
This commit is contained in:
parent
de199a740b
commit
35ddfbcbe3
14 changed files with 203 additions and 35 deletions
|
|
@ -1002,7 +1002,14 @@ impl MetalBackend {
|
|||
self.present(connector);
|
||||
}
|
||||
|
||||
fn present(&self, connector: &Rc<MetalConnector>) {
|
||||
pub fn present(&self, connector: &Rc<MetalConnector>) {
|
||||
let crtc = match connector.crtc.get() {
|
||||
Some(crtc) => crtc,
|
||||
_ => return,
|
||||
};
|
||||
if !crtc.active.value.get() {
|
||||
return;
|
||||
}
|
||||
let buffers = match connector.buffers.get() {
|
||||
None => return,
|
||||
Some(b) => b,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue