stop auto resizing command buffers array list
This commit is contained in:
@@ -12,9 +12,9 @@ gnReturnCode gnCommandPoolAllocateCommandBuffersFromPointer(gnCommandBufferHandl
|
||||
}
|
||||
|
||||
gnReturnCode gnCommandPoolAllocateCommandBuffersFromList(gnCommandBufferArrayList buffers, uint32_t count, gnCommandPoolHandle commandPool) {
|
||||
if (buffers.count < count) {
|
||||
gnCommandBufferArrayListExpand(&buffers, buffers.count - count);
|
||||
}
|
||||
// if (buffers.count < count) {
|
||||
// gnCommandBufferArrayListExpand(&buffers, buffers.count - count);
|
||||
// }
|
||||
|
||||
for (int i = 0; i < count; i++) {
|
||||
buffers.data[i] = malloc(sizeof(struct gnCommandBuffer_t));
|
||||
|
Reference in New Issue
Block a user