Eevee: Re fix Compilation on MSVC
This commit is contained in:
parent
5670e4149b
commit
0610bc88a3
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue