Rafael Cintron c36a9e8579 Protect Texture::DestroyImpl against multiple calls for D3D12
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>
2021-03-03 18:42:34 +00:00
..
2021-02-26 02:20:25 +00:00
2021-01-05 02:39:18 +00:00
2021-02-26 02:20:25 +00:00
2020-06-19 21:39:23 +00:00
2020-04-10 19:04:42 +00:00
2020-12-08 16:32:34 +00:00
2021-02-19 18:31:02 +00:00
2021-02-19 18:17:22 +00:00
2021-02-19 18:17:22 +00:00
2021-02-16 19:55:09 +00:00
2021-02-16 19:55:09 +00:00
2020-06-11 00:34:14 +00:00
2020-04-20 17:36:22 +00:00
2021-01-27 21:27:54 +00:00
2021-02-25 21:47:15 +00:00
2021-02-25 13:17:01 +00:00
2021-02-26 02:20:25 +00:00
2021-02-26 02:20:25 +00:00
2020-06-11 00:34:14 +00:00