According to MSDN PeekMessage returns false only when the message queue is empty. If there is another message after WM_QUIT, the part of the code responsible for proper closing of the application would never be triggered. This change handles WM_QUIT message properly.
According to MSDN PeekMessage returns false only when the message queue is empty. If there is another message after WM_QUIT, the part of the code responsible for proper closing of the application would never be triggered. This change handles WM_QUIT message properly.

SaschaWillems/Vulkan,ming4883/Vulkan,jpbruyere/Vulkan,grim210/Vulkan,SaschaWillems/Vulkan,jpbruyere/Vulkan,ming4883/Vulkan,ming4883/Vulkan,SaschaWillems/Vulkan,SaschaWillems/Vulkan,SaschaWillems/Vulkan,grim210/Vulkan