diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-03-30 12:49:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-03-30 12:50:23 +0300 |
commit | 09397ac2c16efd073090f3c553568f4315273fa4 (patch) | |
tree | 8788cf7b2adbaac64da99ec374b11325ad20c854 /source | |
parent | afbc45ed93c22afcffd4f3aa2078a4e324263045 (diff) |
Fix for invalid buffer access on zero-face meshes
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/cdderivedmesh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/cdderivedmesh.c b/source/blender/blenkernel/intern/cdderivedmesh.c index 6b7855b7759..1c2c6eb194b 100644 --- a/source/blender/blenkernel/intern/cdderivedmesh.c +++ b/source/blender/blenkernel/intern/cdderivedmesh.c @@ -786,7 +786,7 @@ static void cdDM_drawMappedFaces(DerivedMesh *dm, if (tottri == 0) { /* avoid buffer problems in following code */ } - if (setDrawOptions == NULL) { + else if (setDrawOptions == NULL) { /* just draw the entire face array */ glDrawArrays(GL_TRIANGLES, 0, (tottri) * 3); } |