diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/gpu/intern/gpu_buffers.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/gpu/intern/gpu_buffers.c b/source/blender/gpu/intern/gpu_buffers.c index f1b9e3ff00e..22cfc712df3 100644 --- a/source/blender/gpu/intern/gpu_buffers.c +++ b/source/blender/gpu/intern/gpu_buffers.c @@ -118,10 +118,10 @@ static GPUBufferPool *gpu_buffer_pool_new(void) pool->maxsize = MAX_FREE_GPU_BUFFERS; pool->maxpbvhsize = MAX_FREE_GPU_BUFF_IDS; - pool->buffers = MEM_callocN(sizeof(*pool->buffers) * pool->maxsize, - "GPUBufferPool.buffers"); - pool->pbvhbufids = MEM_callocN(sizeof(*pool->pbvhbufids) * pool->maxpbvhsize, - "GPUBufferPool.pbvhbuffers"); + pool->buffers = MEM_mallocN(sizeof(*pool->buffers) * pool->maxsize, + "GPUBufferPool.buffers"); + pool->pbvhbufids = MEM_mallocN(sizeof(*pool->pbvhbufids) * pool->maxpbvhsize, + "GPUBufferPool.pbvhbuffers"); return pool; } |