mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Fix failed request for adapter when not available (#31002)
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
This commit is contained in:
parent
dd0149d953
commit
fddc4a430f
6 changed files with 97 additions and 90 deletions
|
@ -2063,7 +2063,11 @@ where
|
|||
};
|
||||
match request {
|
||||
FromScriptMsg::RequestAdapter(response_sender, options, ids) => match webgpu_chan {
|
||||
None => warn!("Failed to send request adapter message, missing WebGPU channel"),
|
||||
None => {
|
||||
if let Err(e) = response_sender.send(None) {
|
||||
return warn!("Failed to send request adapter message: {}", e);
|
||||
}
|
||||
},
|
||||
Some(webgpu_chan) => {
|
||||
let adapter_request = WebGPURequest::RequestAdapter {
|
||||
sender: response_sender,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue