metal: support multi-gpu systems via copying
This commit is contained in:
parent
d43e7b345c
commit
28e91e0c5d
4 changed files with 167 additions and 80 deletions
|
|
@ -241,7 +241,13 @@ impl WlOutputGlobal {
|
|||
continue;
|
||||
}
|
||||
};
|
||||
fb.copy_texture(&self.state, tex, -capture.rect.x1(), -capture.rect.y1());
|
||||
fb.copy_texture(
|
||||
&self.state,
|
||||
tex,
|
||||
-capture.rect.x1(),
|
||||
-capture.rect.y1(),
|
||||
false,
|
||||
);
|
||||
}
|
||||
if capture.with_damage.get() {
|
||||
capture.send_damage();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue