[Bf-blender-cvs] [a99c64b12fb] blender2.8: Eevee: Fix wrong MEM_callocN allocation size

Dalai Felinto noreply at git.blender.org
Thu Sep 21 15:53:00 CEST 2017


Commit: a99c64b12fbea69ba950be83fa9dd710e390719c
Author: Dalai Felinto
Date:   Thu Sep 21 15:52:51 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBa99c64b12fbea69ba950be83fa9dd710e390719c

Eevee: Fix wrong MEM_callocN allocation size

===================================================================

M	source/blender/draw/intern/draw_manager.c

===================================================================

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



More information about the Bf-blender-cvs mailing list