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

@ -163,7 +163,9 @@ impl JayScreencast {
let mut buffer = self.buffers.borrow_mut();
for (idx, buffer) in buffer.deref_mut().iter_mut().enumerate() {
if buffer.free {
buffer.fb.copy_texture(&self.client.state, texture, 0, 0);
buffer
.fb
.copy_texture(&self.client.state, texture, 0, 0, false);
self.client.event(Ready {
self_id: self.id,
idx: idx as _,