Commit: 3dbdf5223261cacaaf86f32cade1b6311b42de4b
Parent: de3f2343c1bd2c4e0a90b0a64cb841ebcdf5ecab
Author: Randy Palamar
Date: Tue, 12 May 2026 10:55:18 -0600
vulkan: VulkanCommandPool::next_index i32 -> u32
Fixes a crash due to an invalid index being calculated when
next_index is 0. C compilers/C standard kind of suck.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vulkan.c b/vulkan.c
@@ -107,7 +107,7 @@ static_assert(alignof(VulkanQueue) == 64, "VulkanQueue must be placed on its own
typedef alignas(64) struct {
i32 lock;
- i32 next_index;
+ u32 next_index;
VulkanPipeline *bound_pipeline;