Changeset 5218 in orxonox.OLD for trunk/src/lib/graphics
- Timestamp:
- Sep 22, 2005, 5:30:01 PM (19 years ago)
- Location:
- trunk/src/lib/graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/model.cc
r5217 r5218 110 110 if (this->listNumber != 0) 111 111 glDeleteLists(this->listNumber, 1); 112 113 if (this->name[0] != '\0') 114 delete[] this->name; 112 115 113 116 if (this->next !=NULL) … … 446 449 if (this->groupCount != 0 && this->currentGroup->faceCount > 0) 447 450 { 448 // 451 // finalizeGroup(currentGroup); 449 452 this->currentGroup = this->currentGroup->next = new ModelGroup; 450 453 } -
trunk/src/lib/graphics/spatial_separation/quadtree.cc
r5215 r5218 26 26 using namespace std; 27 27 28 #define QUADTREE_MATERIAL_COUNT 4 28 29 29 30 /** … … 37 38 38 39 /* initialize the materials for debug draw */ 39 this->materials = new Material*[ 4];40 for(int i = 0; i < 4; ++i)40 this->materials = new Material*[QUADTREE_MATERIAL_COUNT]; 41 for(int i = 0; i < QUADTREE_MATERIAL_COUNT; ++i) 41 42 { 42 43 materials[i] = new Material(); … … 82 83 // delete what has to be deleted here 83 84 delete [] this->nodes; 85 if (this->materials != NULL) 86 { 87 for (unsigned int i = 0; i < QUADTREE_MATERIAL_COUNT; i++) 88 delete this->materials[i]; 89 delete this->materials; 90 } 91 84 92 delete this->rootNode; 85 93 delete offset;
Note: See TracChangeset
for help on using the changeset viewer.