Changeset 1554


Ignore:
Timestamp:
10/02/06 19:16:14 (18 years ago)
Author:
gumbau
Message:
 
Location:
GTP/trunk/Lib/Geom/shared/GeoTool
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Geom/shared/GeoTool/include/GeoMeshViewUI.h

    r1549 r1554  
    117117                } 
    118118 
    119                 virtual void SetIndex(unsigned int i, unsigned int index){ 
    120                         indices[modifySubmesh][i] = index; 
    121                 } 
     119        virtual void SetIndex(unsigned int i, unsigned int index){ 
     120                assert(i<indexCount[modifySubmesh]); 
     121                indices[modifySubmesh][i] = index; 
     122        } 
    122123 
    123124                virtual void End(void){} 
  • GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshView.cpp

    r1549 r1554  
    923923 
    924924                //      For each one of the strips. 
    925                 int indices_to_render = lodStripsLib->GetValidIndexCount(submesh); 
    926                 int offset                                              =       lodStripsLib->GetValidOffset(submesh); 
     925                int indices_to_render = lodStripsLib->GetValidIndexCount(submesh); 
    927926 
    928927                glBegin(GL_TRIANGLE_STRIP); 
     
    10051004 
    10061005                //      For each one of the strips. 
    1007                 int indices_to_render = lodTreeLib->GetValidTrunkIndexCount(submesh); 
    1008                 int begin_index                         =       lodTreeLib->GetValidTrunkOffset(submesh); 
     1006                int indices_to_render = lodTreeLib->GetValidTrunkIndexCount(submesh); 
    10091007                         
    10101008                glBegin(GL_TRIANGLE_STRIP); 
Note: See TracChangeset for help on using the changeset viewer.