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:
authorAntony Riakiotakis <kalast@gmail.com>2013-06-05 13:10:56 +0400
committerAntony Riakiotakis <kalast@gmail.com>2013-06-05 13:10:56 +0400
commitaa96f0290a882b78289f2b8d2e2750d3f73675c0 (patch)
tree7106f8356ef62779c89bb1b11c62b7921efdd865 /source/blender/gpu
parent4d53729ab99e286d74bc6a106bccadd2e1e9f955 (diff)
Obsessive Null Checking Compulsion case:
Textured draw mode + DynTopo crashed after recent specularity tweak.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_buffers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_buffers.c b/source/blender/gpu/intern/gpu_buffers.c
index 1b1d52728e8..7c4c4ce7ced 100644
--- a/source/blender/gpu/intern/gpu_buffers.c
+++ b/source/blender/gpu/intern/gpu_buffers.c
@@ -2323,7 +2323,7 @@ void GPU_draw_buffers(GPU_Buffers *buffers, DMSetMaterial setMaterial,
if (!setMaterial(f->mat_nr + 1, NULL))
return;
}
- else {
+ else if (setMaterial) {
if (!setMaterial(1, NULL))
return;
}