diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-09-21 16:52:51 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-09-21 16:52:51 +0300 |
commit | a99c64b12fbea69ba950be83fa9dd710e390719c (patch) | |
tree | 6eaf2d067ef64c694186c3830e57db85524438db /source/blender/draw/intern | |
parent | 9ad2c0b6154b8e11521e9ee0422a79d5e0b9a2e1 (diff) |
Eevee: Fix wrong MEM_callocN allocation size
Diffstat (limited to 'source/blender/draw/intern')
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index b20c9fe013b..94f42f1ec18 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -2544,7 +2544,7 @@ static void DRW_viewport_var_init(void) RST.bound_texs = MEM_callocN(sizeof(GPUTexture *) * GPU_max_textures(), "Bound GPUTexture refs"); } if (RST.bound_tex_slots == NULL) { - RST.bound_tex_slots = MEM_callocN(sizeof(GPUUniformBuffer *) * GPU_max_textures(), "Bound Texture Slots"); + RST.bound_tex_slots = MEM_callocN(sizeof(bool) * GPU_max_textures(), "Bound Texture Slots"); } } |