ConfettiFX / The-Forge

The Forge Cross-Platform Rendering Framework PC Windows, Steamdeck (native), Ray Tracing, macOS / iOS, Android, XBOX, PS4, PS5, Switch, Quest 2
Apache License 2.0
4.65k stars 491 forks source link

chore: add assertion for vk_addSwapChain #247

Closed pollend closed 2 years ago

pollend commented 2 years ago

an access to ppPresentQueues happens on line 3775 its unguarded so an assertion here should help if a Queue is not provided when pDesc is passed in.

    uint32_t      queue_family_indices[2] = { pDesc->ppPresentQueues[0]->mVulkan.mVkQueueFamilyIndex, 0 };