fix buffer overrun when 5+ sided faces were used for text drawing.

This commit is contained in:
Campbell Barton
2012-09-19 02:06:27 +00:00
parent 4ea7193ccf
commit 946c9580b5

View File

@@ -714,7 +714,7 @@ static void draw_mesh_text(Scene *scene, Object *ob, int glsl)
unsigned int j;
lcol = &mloopcol[mp->loopstart];
for (j = 0; j <= totloop_clamp; j++, lcol++) {
for (j = 0; j < totloop_clamp; j++, lcol++) {
MESH_MLOOPCOL_TO_MCOL(lcol, &tmp_mcol[j]);
}
}