1
0
Fork 0
forked from wry/wry

metal: support multi-gpu systems via copying

This commit is contained in:
Julian Orth 2022-11-13 21:07:32 +01:00
parent d43e7b345c
commit 28e91e0c5d
4 changed files with 167 additions and 80 deletions

View file

@ -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();