From 79e7c02bf62816f36818f6c711e7c0fda61782e2 Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Wed, 13 Jun 2001 00:57:29 +0000 Subject: [PATCH] fix build break --- panda/src/glgsg/glGraphicsStateGuardian.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/panda/src/glgsg/glGraphicsStateGuardian.cxx b/panda/src/glgsg/glGraphicsStateGuardian.cxx index 64dfcd2925..ca54f1033d 100644 --- a/panda/src/glgsg/glGraphicsStateGuardian.cxx +++ b/panda/src/glgsg/glGraphicsStateGuardian.cxx @@ -1787,7 +1787,9 @@ prepare_geom_node(GeomNode *node) { // otherwise there's no point in building a display list. int num_geoms = node->get_num_geoms(); bool all_dynamic = true; - for (int i = 0; i < num_geoms && all_dynamic; i++) { + int i; + + for (i = 0; (i < num_geoms) && all_dynamic; i++) { dDrawable *geom = node->get_geom(i); all_dynamic = geom->is_dynamic(); } @@ -1815,7 +1817,7 @@ prepare_geom_node(GeomNode *node) { // Now define the display list. glNewList(ggnc->_index, GL_COMPILE); - for (int i = 0; i < num_geoms; i++) { + for (i = 0; i < num_geoms; i++) { dDrawable *geom = node->get_geom(i); if (geom->is_dynamic()) { // Wait, this is a dynamic Geom. We can't safely put it in the