NcStudios / NcEngine

NcEngine: 3D game engine written in modern C++ and Vulkan
https://ncstudios.itch.io/
MIT License
36 stars 2 forks source link

Fix uninitialized bufffer frames #618

Closed McCallisterRomer closed 2 months ago

McCallisterRomer commented 2 months ago

Bug found while tinkering with swiftshader: We only initialize buffer frames when opening a device stream. If that fails, like when a build agent doesn't have a suitable device, its contains garbage, eventually triggering an exception when we check if its a power of two.