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
|
|
@ -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 _,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue