gfx-rs / gfx

[maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
http://gfx-rs.github.io/
Apache License 2.0
5.36k stars 546 forks source link

Fix panic on Android app reopen #3754

Closed zakorgy closed 3 years ago

zakorgy commented 3 years ago

Fixes https://github.com/gfx-rs/gfx/issues/3420 I still have to test this on Android. Also I wasn't sure that changing capabilities to return with a Result thus adding an API change would be the proper way to do this, so I just put some defaults there. PR checklist:

kvark commented 3 years ago

bors r+

bors[bot] commented 3 years ago

Build succeeded: