mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
fix presentation belt
This commit is contained in:
parent
1f4a18b995
commit
40288783a1
1 changed files with 9 additions and 6 deletions
|
@ -1127,17 +1127,20 @@ impl<'a> WGPU<'a> {
|
|||
status: BufferMapAsyncStatus,
|
||||
userdata: *mut u8,
|
||||
) {
|
||||
let info =
|
||||
Rc::from_raw(userdata as *const BufferMapInfo<WebGPURequest>);
|
||||
let info = Rc::from_raw(
|
||||
userdata
|
||||
as *const BufferMapInfo<(Option<ErrorScopeId>, WebGPURequest)>,
|
||||
);
|
||||
match status {
|
||||
BufferMapAsyncStatus::Success => {
|
||||
if let Err(e) =
|
||||
info.sender.send(WebGPURequest::UpdateWebRenderData {
|
||||
if let Err(e) = info.sender.send((
|
||||
None,
|
||||
WebGPURequest::UpdateWebRenderData {
|
||||
buffer_id: info.buffer_id,
|
||||
buffer_size: info.size,
|
||||
external_id: info.external_id.unwrap(),
|
||||
})
|
||||
{
|
||||
},
|
||||
)) {
|
||||
warn!("Could not send UpdateWebRenderData ({})", e);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue