Changeset 3298

Show
Ignore:
Timestamp:
08/17/04 20:56:24 (10 years ago)
Author:
robert
Message:

Changed sizeof(..) references to 1,2,4 respectively.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osg/PrimitiveSet.cpp

    r3093 r3298  
    8989            extensions->glGenBuffers(1, &buffer); 
    9090            extensions->glBindBuffer(GL_ELEMENT_ARRAY_BUFFER_ARB, buffer); 
    91             extensions->glBufferData(GL_ELEMENT_ARRAY_BUFFER_ARB, size() * sizeof(GL_UNSIGNED_BYTE), &front(), GL_STATIC_DRAW_ARB); 
     91            extensions->glBufferData(GL_ELEMENT_ARRAY_BUFFER_ARB, size() * 1, &front(), GL_STATIC_DRAW_ARB); 
    9292        } 
    9393        else 
     
    137137            extensions->glGenBuffers(1, &buffer); 
    138138            extensions->glBindBuffer(GL_ELEMENT_ARRAY_BUFFER_ARB, buffer); 
    139             extensions->glBufferData(GL_ELEMENT_ARRAY_BUFFER_ARB, size() * sizeof(GL_UNSIGNED_SHORT), &front(), GL_STATIC_DRAW_ARB); 
     139            extensions->glBufferData(GL_ELEMENT_ARRAY_BUFFER_ARB, size() * 2, &front(), GL_STATIC_DRAW_ARB); 
    140140        } 
    141141        else 
     
    185185            extensions->glGenBuffers(1, &buffer); 
    186186            extensions->glBindBuffer(GL_ELEMENT_ARRAY_BUFFER_ARB, buffer); 
    187             extensions->glBufferData(GL_ELEMENT_ARRAY_BUFFER_ARB, size() * sizeof(GL_UNSIGNED_INT), &front(), GL_STATIC_DRAW_ARB); 
     187            extensions->glBufferData(GL_ELEMENT_ARRAY_BUFFER_ARB, size() * 4, &front(), GL_STATIC_DRAW_ARB); 
    188188        } 
    189189        else