Skip to content

Vulkan win32: swapchain creation fails when window becomes minimized #1470

@floooh

Description

@floooh

Minimizing the window currently panics on Windows because vkGetPhysicalDeviceSurfaceCapabilitiesKHR returns a width and height of zero which then causes vkCreateSwapchainKHR to fail with -1 (VK_ERROR_OUT_OF_HOST_MEMORY).

This really needs to be solved via #1446 (e.g. sokol_gfx.h needs to be able to deal with 'invalid' swapchain render passes by skipping all pass operations).

Metadata

Metadata

Assignees

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions