summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-05-21 15:36:25 -0600
committerBrian Paul <[email protected]>2009-05-21 16:10:45 -0600
commit8fe3134622eed34159ff6f72a33558a659e8d299 (patch)
tree990aee0c514948b51b8626c66d6bb530eba08bb7 /src
parent8fa0cb2b422abaeee1b69f82ca7e9f02dc8393b9 (diff)
mesa: call _mesa_update_array_object_max_element() before printing array info
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/varray.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index 8e6ef9caa5d..ac305389250 100644
--- a/src/mesa/main/varray.c
+++ b/src/mesa/main/varray.c
@@ -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);