You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int imageCount = min(max(pSurfaceCapabilities.minImageCount(), 2), pSurfaceCapabilities.maxImageCount());
does not handle the fact that maxImageCount() may return 0 to indicate "no limit", setting imageCount to 0 and creating a zero-image swapchain. The application subsequently crashes with "Index 0 out of bounds for length 0".
The text was updated successfully, but these errors were encountered:
In createSwapchain(), The line
int imageCount = min(max(pSurfaceCapabilities.minImageCount(), 2), pSurfaceCapabilities.maxImageCount());
does not handle the fact that maxImageCount() may return 0 to indicate "no limit", setting imageCount to 0 and creating a zero-image swapchain. The application subsequently crashes with "Index 0 out of bounds for length 0".
The text was updated successfully, but these errors were encountered: