DRW: Add assert for uniform that needs valid data.
This commit is contained in:
parent
8444aaaa69
commit
1b8ba6b8b9
|
@ -122,11 +122,13 @@ static void drw_interface_uniform(DRWShadingGroup *shgroup, const char *name,
|
|||
|
||||
void DRW_shgroup_uniform_texture(DRWShadingGroup *shgroup, const char *name, const GPUTexture *tex)
|
||||
{
|
||||
BLI_assert(tex != NULL);
|
||||
drw_interface_uniform(shgroup, name, DRW_UNIFORM_TEXTURE, tex, 0, 1);
|
||||
}
|
||||
|
||||
void DRW_shgroup_uniform_block(DRWShadingGroup *shgroup, const char *name, const GPUUniformBuffer *ubo)
|
||||
{
|
||||
BLI_assert(ubo != NULL);
|
||||
drw_interface_uniform(shgroup, name, DRW_UNIFORM_BLOCK, ubo, 0, 1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue