Fixed warnings

This commit is contained in:
Robert Osfield
2008-12-18 13:56:30 +00:00
parent 9d2b1b539c
commit 9b1445d5b9
14 changed files with 36 additions and 32 deletions

View File

@@ -260,9 +260,9 @@ class GeometryTest : public GLMemoryTest
{
unsigned int numVertices = _width * _height;
osg::Vec3Array* vertices = new osg::Vec3Array(numVertices);
for(unsigned int j=0; j<_height; ++j)
for(int j=0; j<_height; ++j)
{
for(unsigned i=0; i<_width; ++i)
for(int i=0; i<_width; ++i)
{
(*vertices)[i+j*_width].set(float(i),float(j),0.0f);
}
@@ -271,9 +271,9 @@ class GeometryTest : public GLMemoryTest
unsigned int numIndices = (_width-1) * (_height-1) * 4;
osg::DrawElementsUShort* quads = new osg::DrawElementsUShort(GL_QUADS);
quads->reserve(numIndices);
for(unsigned int j=0; j<_height-1; ++j)
for(int j=0; j<_height-1; ++j)
{
for(unsigned i=0; i<_width-1; ++i)
for(int i=0; i<_width-1; ++i)
{
quads->push_back(i + j*_width);
quads->push_back(i+1 + j*_width);