Clay Engine: Replace if() by assert()

This commit is contained in:
Clément Foucault 2017-02-26 21:08:02 +01:00
parent 712530eb93
commit 6dabcdf69e
1 changed files with 6 additions and 6 deletions

View File

@ -474,14 +474,14 @@ void DRW_shgroup_free(struct DRWShadingGroup *shgroup)
void DRW_shgroup_call_add(DRWShadingGroup *shgroup, Batch *geom, float (*obmat)[4])
{
if (geom) {
DRWCall *call = MEM_callocN(sizeof(DRWCall), "DRWCall");
BLI_assert(geom != NULL);
call->obmat = obmat;
call->geometry = geom;
DRWCall *call = MEM_callocN(sizeof(DRWCall), "DRWCall");
BLI_addtail(&shgroup->calls, call);
}
call->obmat = obmat;
call->geometry = geom;
BLI_addtail(&shgroup->calls, call);
}
void DRW_shgroup_dynamic_call_add(DRWShadingGroup *shgroup, ...)