From fac571928dca9511df3886ade4fce724f9cc5c58 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 15 Apr 2005 21:50:32 +0000 Subject: [PATCH] more debugging --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index 46dc1ce753..ac8d8e1dfc 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx @@ -3012,8 +3012,12 @@ prepare_index_buffer(qpGeomPrimitive *data) { _glGenBuffers(1, &gibc->_index); if (GLCAT.is_debug()) { + const qpGeomVertexArrayData *vertices = data->get_vertices(); GLCAT.debug() - << "creating index buffer " << gibc->_index << "\n"; + << "creating index buffer " << gibc->_index << ": " + << data->get_num_vertices() << " indices (" + << data->get_vertices()->get_array_format()->get_column(0)->get_numeric_type() + << ")\n"; } report_my_gl_errors();