diff options
Diffstat (limited to 'source/blender/draw/engines/workbench/workbench_forward.c')
-rw-r--r-- | source/blender/draw/engines/workbench/workbench_forward.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/engines/workbench/workbench_forward.c b/source/blender/draw/engines/workbench/workbench_forward.c index 3fb68654188..e0e0bdea0f5 100644 --- a/source/blender/draw/engines/workbench/workbench_forward.c +++ b/source/blender/draw/engines/workbench/workbench_forward.c @@ -247,10 +247,10 @@ void workbench_forward_engine_init(WORKBENCH_Data *vedata) if (!stl->g_data) { /* Alloc transient pointers */ - stl->g_data = MEM_mallocN(sizeof(*stl->g_data), __func__); + stl->g_data = MEM_callocN(sizeof(*stl->g_data), __func__); } if (!stl->effects) { - stl->effects = MEM_mallocN(sizeof(*stl->effects), __func__); + stl->effects = MEM_callocN(sizeof(*stl->effects), __func__); workbench_effect_info_init(stl->effects); } WORKBENCH_PrivateData *wpd = stl->g_data; |