Eevee: fix wrong sizeof.

Like really? wtf dude? *self face slapping*
This commit is contained in:
2018-03-05 01:26:12 +01:00
parent 94fadd00d8
commit aa02c099f9

View File

@@ -1141,7 +1141,7 @@ static void material_opaque(
}
}
emsg = MEM_mallocN(sizeof("EeveeMaterialShadingGroups"), "EeveeMaterialShadingGroups");
emsg = MEM_mallocN(sizeof(EeveeMaterialShadingGroups), "EeveeMaterialShadingGroups");
emsg->shading_grp = *shgrp;
emsg->depth_grp = *shgrp_depth;
emsg->depth_clip_grp = *shgrp_depth_clip;