Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-08-23 15:48:44 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-08-23 15:48:44 +0300
commite4932d1167f486e59d38a9d599e473e4888872ec (patch)
treef9c645bb0db21a6433cacd7e1e671630128d5bbd /source/blender/gpu/intern/gpu_material.c
parente74ba9e09e74a1a6d340877469eed05c810f46b3 (diff)
Fix T80034 Crash using material panel on 2.91.0 alpha
This was caused by a NULL name.
Diffstat (limited to 'source/blender/gpu/intern/gpu_material.c')
-rw-r--r--source/blender/gpu/intern/gpu_material.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_material.c b/source/blender/gpu/intern/gpu_material.c
index a0432b78a7e..1016e766140 100644
--- a/source/blender/gpu/intern/gpu_material.c
+++ b/source/blender/gpu/intern/gpu_material.c
@@ -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);
}