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:
authorClément Foucault <foucault.clem@gmail.com>2019-05-07 19:01:14 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-05-08 18:49:28 +0300
commit820a64b9e5cf9c737fd484c6794e2e22c3f66d9f (patch)
treeba6f2ab7457de787506723c10b0b52422e931da5 /source/blender/gpu/GPU_viewport.h
parent9fea65a93def1ee72fdc1585a381607441f76c21 (diff)
DRW: Replace BLI_mempool by BLI_memblock
This remove a avoid the big overhead present in BLI_mempool when it is cleared.
Diffstat (limited to 'source/blender/gpu/GPU_viewport.h')
-rw-r--r--source/blender/gpu/GPU_viewport.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/gpu/GPU_viewport.h b/source/blender/gpu/GPU_viewport.h
index 198a9ec98e2..70626ccb39b 100644
--- a/source/blender/gpu/GPU_viewport.h
+++ b/source/blender/gpu/GPU_viewport.h
@@ -37,12 +37,12 @@ typedef struct GPUViewport GPUViewport;
/* Contains memory pools information */
typedef struct ViewportMemoryPool {
- struct BLI_mempool *calls;
- struct BLI_mempool *states;
- struct BLI_mempool *shgroups;
- struct BLI_mempool *uniforms;
- struct BLI_mempool *passes;
- struct BLI_mempool *images;
+ struct BLI_memblock *calls;
+ struct BLI_memblock *states;
+ struct BLI_memblock *shgroups;
+ struct BLI_memblock *uniforms;
+ struct BLI_memblock *passes;
+ struct BLI_memblock *images;
} ViewportMemoryPool;
/* All FramebufferLists are just the same pointers with different names */