This fixes the "BadDrawable (invalid Pixmap or Window parameter)" error thrown by vkGetPhysicalDeviceSurfaceCapabilitiesKHR() on Nvidia drivers.