Improves handling of window resizes on vulkan (avoids crashes) (#2123)
Improves handling of window resizes on vulkan (avoids crashes) (#2123)

* Improves handling of window resizes on vulkan (avoids crashes)

* Change to previous commit as requested.
Rebased and added refresh swapchain check inside updateResolution(),
similar to renderer_d3d12.cpp.
jdryg/bgfx,emoon/bgfx,jdryg/bgfx,LWJGL-CI/bgfx,bkaradzic/bgfx,bkaradzic/bgfx,emoon/bgfx,jdryg/bgfx,jdryg/bgfx,LWJGL-CI/bgfx,LWJGL-CI/bgfx,mendsley/bgfx,bkaradzic/bgfx,LWJGL-CI/bgfx,mendsley/bgfx,bkaradzic/bgfx,emoon/bgfx,mendsley/bgfx