mesa: call _mesa_update_array_object_max_element() before printing array info

This commit is contained in:
Brian Paul 2009-05-21 15:36:25 -06:00
parent 8fa0cb2b42
commit 8fe3134622

View file

@ -1060,6 +1060,8 @@ _mesa_print_arrays(GLcontext *ctx)
const struct gl_array_object *arrayObj = ctx->Array.ArrayObj;
GLuint i;
_mesa_update_array_object_max_element(ctx, arrayObj);
_mesa_printf("Array Object %u\n", arrayObj->Name);
if (arrayObj->Vertex.Enabled)
print_array("Vertex", -1, &arrayObj->Vertex);