Eevee: Re fix Compilation on MSVC

This commit is contained in:
Clément Foucault 2017-04-18 22:34:44 +02:00
parent 5670e4149b
commit 0610bc88a3
2 changed files with 4 additions and 1 deletions

View File

@ -299,7 +299,7 @@ static DRWShadingGroup *eevee_cube_shgroup(struct GPUShader *sh, DRWPass *pass,
DRWShadingGroup *grp = DRW_shgroup_instance_create(sh, pass, geom);
for (int i = 0; i < 6; ++i)
DRW_shgroup_dynamic_call_add(grp, NULL);
DRW_shgroup_dynamic_call_add_empty(grp);
return grp;
}

View File

@ -250,6 +250,9 @@ void DRW_shgroup_dynamic_call_add_array(DRWShadingGroup *shgroup, const void *at
const void *array[] = {__VA_ARGS__}; \
DRW_shgroup_dynamic_call_add_array(shgroup, array, (sizeof(array) / sizeof(*array))); \
} while (0)
#define DRW_shgroup_dynamic_call_add_empty(shgroup) do { \
DRW_shgroup_dynamic_call_add_array(shgroup, NULL, 0); \
} while (0)
void DRW_shgroup_state_set(DRWShadingGroup *shgroup, DRWState state);
void DRW_shgroup_attrib_int(DRWShadingGroup *shgroup, const char *name, int size);