stop auto resizing command buffers array list

This commit is contained in:
Greg Wells
2025-07-19 07:09:26 -04:00
parent 443828b46a
commit eca4a144e1

View File

@@ -12,9 +12,9 @@ gnReturnCode gnCommandPoolAllocateCommandBuffersFromPointer(gnCommandBufferHandl
} }
gnReturnCode gnCommandPoolAllocateCommandBuffersFromList(gnCommandBufferArrayList buffers, uint32_t count, gnCommandPoolHandle commandPool) { gnReturnCode gnCommandPoolAllocateCommandBuffersFromList(gnCommandBufferArrayList buffers, uint32_t count, gnCommandPoolHandle commandPool) {
if (buffers.count < count) { // if (buffers.count < count) {
gnCommandBufferArrayListExpand(&buffers, buffers.count - count); // gnCommandBufferArrayListExpand(&buffers, buffers.count - count);
} // }
for (int i = 0; i < count; i++) { for (int i = 0; i < count; i++) {
buffers.data[i] = malloc(sizeof(struct gnCommandBuffer_t)); buffers.data[i] = malloc(sizeof(struct gnCommandBuffer_t));