mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-28 02:01:26 +00:00
Calling Texture::DestroyImpl will cause a crash when passing a nullptr D3D12 resource to the Present method of ID3D12SharingContract. Protect against crashes by checking whether the allocation we're destroying is valid before proceeding. Change-Id: Ifb68c1f85383db5027006cf435f43c84d1a463d9 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/42580 Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Rafael Cintron <rafael.cintron@microsoft.com>