Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Triangle Example] Fix crash when minimizing window #117

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

Sirius902
Copy link
Contributor

@Sirius902 Sirius902 commented Jan 24, 2024

Fixes a crash when minimizing the window in the triangle example due to the window size becoming zero as well as two minor changes. Also changes the swapchain to use the GLFW framebuffer size instead of the window size as iirc they can differ and the swapchain expects the framebuffer size since both operate in pixels.

Edit: Added a deviceWaitIdle call before the program exits since I got Vulkan validation errors about semaphores being deleted while still in use with the validation layer enabled.

Wait for the device to be idle before exiting
@Snektron
Copy link
Owner

I forgot that windows does this, thanks!

@Snektron Snektron merged commit 62e981a into Snektron:master Jan 24, 2024
1 check passed
@Sirius902 Sirius902 deleted the minimize-fix branch January 24, 2024 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants