webgpu: destroy GPUTexture without erroring (#33534)

* destroy GPUTexture without erroring (errors can be safely ignored)

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* Update expectations

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

---------

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
Samson 2024-09-25 11:36:09 +02:00 committed by GitHub
parent 43d92ecbcb
commit 6f797709cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 2134 deletions

View file

@ -567,13 +567,9 @@ impl WGPU {
} => {
self.destroy_swapchain(context_id, image_key);
},
WebGPURequest::DestroyTexture {
device_id,
texture_id,
} => {
WebGPURequest::DestroyTexture(texture_id) => {
let global = &self.global;
let result = global.texture_destroy(texture_id);
self.maybe_dispatch_wgpu_error(device_id, result.err());
let _ = global.texture_destroy(texture_id);
},
WebGPURequest::Exit(sender) => {
if let Err(e) = sender.send(()) {