diff options
author | turjuque <turjuque@gmail.com> | 2016-06-06 19:29:46 +0300 |
---|---|---|
committer | turjuque <turjuque@gmail.com> | 2016-06-06 19:29:46 +0300 |
commit | d2ec40b8f5b4b108fb9457cc521470a42c426f7c (patch) | |
tree | e9be5a6039e764fdeb8124de821a669c313bd851 /source | |
parent | 31d65359e84a025f4f510c8c5a4019db61ceecf4 (diff) |
Fixed crash with no material meshes
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/gpu/intern/gpu_draw.c | 2 |
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; |