Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-04-09 03:30:00 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-09 03:31:20 +0400
commit2496636a6536fcc19b0b0d8ad510ae9c64b424d7 (patch)
tree2fbf40473bb0e0ac74285e93f3061e9c761f957d /source/blender/gpu/intern
parent297a2223b5535cab21c3758ea10ccb4e0f5668e2 (diff)
GPU: replace callocs with malloc since reallocs aren't cleared
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r--source/blender/gpu/intern/gpu_buffers.c8
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;
}