New glDrawArrays() code used an array size of '1' for drawing Surface
curves/polys. Seems to crash in Linux...
This commit is contained in:
2006-12-26 08:46:58 +00:00
parent 46924d32f4
commit 10137426a6

View File

@@ -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;