Fix T80034 Crash using material panel on 2.91.0 alpha

This was caused by a NULL name.
This commit is contained in:
Clément Foucault 2020-08-23 14:48:44 +02:00
parent e74ba9e09e
commit e4932d1167
Notes: blender-bot 2023-02-14 02:13:08 +01:00
Referenced by issue #82769, Crash rendering particle animation with particle caches [disk cache works though]
Referenced by issue #81334, viewport drawing with gpu module
Referenced by issue #80297, 2.91 texture alpha is not transparent
Referenced by issue #80053, Vertices in Edit mode are gone?
Referenced by issue #80034, Crash using material panel on 2.91.0 alpha
Referenced by issue #80005, Eevee shading modes crash Blender
Referenced by issue #79775, Something in Blender can generate invalid (Nan) values in UVMaps
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ void GPU_material_uniform_buffer_create(GPUMaterial *material, ListBase *inputs)
#ifndef NDEBUG
const char *name = material->name;
#else
const char *name = NULL;
const char *name = "Material";
#endif
material->ubo = GPU_uniformbuf_create_from_list(inputs, name);
}