screencopy: Return signalled sync point after shm
Shouldn't really matter, but no need to check the fence after this. It would be good if shm screencopy didn't block here...
This commit is contained in:
parent
905d021552
commit
f2813f0500
1 changed files with 6 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ pub fn submit_buffer<R>(
|
|||
offscreen: Option<&mut R::Framebuffer<'_>>,
|
||||
transform: Transform,
|
||||
damage: Option<&[Rectangle<i32, Physical>]>,
|
||||
sync: SyncPoint,
|
||||
mut sync: SyncPoint,
|
||||
) -> Result<Option<PendingImageCopyData>, R::Error>
|
||||
where
|
||||
R: ExportMem,
|
||||
|
|
@ -154,6 +154,11 @@ where
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
// We've already waited on the sync point and copied from the texture
|
||||
// TODO: Don't block in this function, and defer copy until ready?
|
||||
sync = SyncPoint::signaled();
|
||||
|
||||
Ok(())
|
||||
})
|
||||
.map_err(|err| R::Error::from_gles_error(GlesError::BufferAccessError(err)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue