Eevee: Fix wrong MEM_callocN allocation size

This commit is contained in:
Dalai Felinto 2017-09-21 15:52:51 +02:00
parent 9ad2c0b615
commit a99c64b12f
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}
}