Fixed crash on wayland exit (#352)
Fixed crash on wayland exit (#352)

The engine would crash on exit because SDL handles the deletion of the swapchain on his own, making the engine delete the swapchain twice, which would result in a crash on wayland.
This fix checks if the Video Subsystem is not running any more, if not it will assume there is no need to destroy the swap chains any more.
turanszkij/WickedEngine,turanszkij/WickedEngine,turanszkij/WickedEngine,turanszkij/WickedEngine