diff options
author | Ton Roosendaal <ton@blender.org> | 2006-12-26 11:46:58 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-12-26 11:46:58 +0300 |
commit | 10137426a6b88ac29834e87d0bb359ff677904ee (patch) | |
tree | 26670e2a44d7c5b4fc49913ae35eb63efc1f7e94 /source/blender/src/drawobject.c | |
parent | 46924d32f4b34fedb6b1b9afe26ad5df4d73eff0 (diff) |
Bugfix #5487
New glDrawArrays() code used an array size of '1' for drawing Surface
curves/polys. Seems to crash in Linux...
Diffstat (limited to 'source/blender/src/drawobject.c')
-rw-r--r-- | source/blender/src/drawobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/drawobject.c b/source/blender/src/drawobject.c index ed9829d4540..e56f4a7224e 100644 --- a/source/blender/src/drawobject.c +++ b/source/blender/src/drawobject.c @@ -2320,7 +2320,7 @@ static void drawDispListsolid(ListBase *lb, Object *ob) glColor3fv(curcol); glVertexPointer(3, GL_FLOAT, 0, dl->verts); - glDrawArrays(GL_LINE_STRIP, 0, dl->parts); + glDrawArrays(GL_LINE_STRIP, 0, dl->nr); glEnable(GL_LIGHTING); } @@ -2331,7 +2331,7 @@ static void drawDispListsolid(ListBase *lb, Object *ob) glDisable(GL_LIGHTING); glVertexPointer(3, GL_FLOAT, 0, dl->verts); - glDrawArrays(GL_LINE_LOOP, 0, dl->parts); + glDrawArrays(GL_LINE_LOOP, 0, dl->nr); glEnable(GL_LIGHTING); break; |