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
path: root/source
diff options
context:
space:
mode:
authorturjuque <turjuque@gmail.com>2016-06-06 19:29:46 +0300
committerturjuque <turjuque@gmail.com>2016-06-06 19:29:46 +0300
commitd2ec40b8f5b4b108fb9457cc521470a42c426f7c (patch)
treee9be5a6039e764fdeb8124de821a669c313bd851 /source
parent31d65359e84a025f4f510c8c5a4019db61ceecf4 (diff)
Fixed crash with no material meshes
Diffstat (limited to 'source')
-rw-r--r--source/blender/gpu/intern/gpu_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c
index a53a9d0340a..655b56aea90 100644
--- a/source/blender/gpu/intern/gpu_draw.c
+++ b/source/blender/gpu/intern/gpu_draw.c
@@ -1728,7 +1728,7 @@ void GPU_begin_object_materials(
View3D *v3d, RegionView3D *rv3d, Scene *scene, Object *ob,
bool glsl, bool *do_alpha_after)
{
- Material *ma;
+ Material *ma = NULL;
GPUMaterial *gpumat;
GPUBlendMode alphablend;
DupliObject *dob;