Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1791881 - Don't crash in buffer_destroy if the buffer is in an in…
…valid state. r=jgilbert Once gfx-rs/wgpu#3094 is merged, unallocated and freed handles will panic in wgpu-core so we don't have to do it here. In the mean time it will produce the wrong error but still fail safely. DestroyError::Invalid means the handle exists but is not is in an invalid state, for example if the buffer was created with invalid parameter like in this bug's test case. Differential Revision: https://phabricator.services.mozilla.com/D159054
- Loading branch information