1
0
Fork 0
forked from wry/wry

gfx: remove incompatible shm downloads

This commit is contained in:
Julian Orth 2024-10-06 11:50:11 +02:00
parent 17de1650a0
commit aca14d48dd
7 changed files with 27 additions and 176 deletions

View file

@ -1045,17 +1045,7 @@ impl State {
scale,
)
.map_err(ShmScreencopyError::CopyToTemporary)?;
let acc = mem.access(|mem| {
fb.copy_to_shm(
0,
0,
capture.rect.width(),
capture.rect.height(),
stride,
format,
mem,
)
});
let acc = mem.access(|mem| fb.copy_to_shm(mem));
match acc {
Ok(res) => res.map_err(ShmScreencopyError::ReadPixels),
Err(e) => {