SaschaWillems / Vulkan-glTF-PBR

Physical based rendering with Vulkan using glTF 2.0 models
MIT License
915 stars 124 forks source link

Fix a null pointer access. #42

Closed syoyo closed 4 years ago

syoyo commented 4 years ago

swapChain may become null on Android(for example when the Android device orientation has been changed and will result in segmentation fault on some device(Confirmed on Pixel3 XL).

This PR ensures swapChain should be non-null.

SaschaWillems commented 4 years ago

Thanks for your PR. Very much appreciated :)

syoyo commented 4 years ago

Thanks!