ZOulhadj / vmve

Vulkan Model Viewer and Importer. A project developed as part of my final year project at University.
https://zoulhadj.github.io/vmve_website/
MIT License
1 stars 0 forks source link

Resizing crashes on other systems #87

Closed ZOulhadj closed 1 year ago

ZOulhadj commented 1 year ago

When resizing on other systems, Vulkan does not return VK_SUBOPTIMAL_KHR or VK_ERROR_OUT_OF_DATE_KHR when calling vkAcquireNextImageKHR. Instead, the errors return when calling vkQueuePresentKHR. When this occurs, the swapchain is resized but I have purposely added an assert before resizing the framebuffers as I was not sure in what situation resizing would occur. Knowing this, I will need to do further research into why resizing occurs in two different places and then implement the framebuffer resizing.

ZOulhadj commented 1 year ago

A commit has been made which also resizes during the presentation stage. Will need to test to confirm if this has been fixed.

ZOulhadj commented 1 year ago

After some additional testing, most notably on the Lab desktop computers at University, the application no longer crashes and everything works as intended.