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

Vulkan ClearScreenDemo has a bug WRT maxImageCount #58

Open
janitza-mage opened this issue Sep 27, 2024 · 0 comments
Open

Vulkan ClearScreenDemo has a bug WRT maxImageCount #58

janitza-mage opened this issue Sep 27, 2024 · 0 comments

Comments

@janitza-mage
Copy link

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".

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

No branches or pull requests

1 participant