Permalink
Browse files

Fixed warning

  • Loading branch information...
osg-training-guest committed Oct 24, 2013
1 parent 6c7a4a4 commit be5dd07875311e2311e0c62c527302ecd87c5ef6
Showing with 8 additions and 6 deletions.
  1. +8 −6 examples/osghangglide/terrain.cpp
@@ -99,12 +99,14 @@ Node *makeTerrain( void )
for( i = 0; i < m * n; i++ )
{
- v[i][0] = vertex[i][0] - dbcenter[0];
- v[i][1] = vertex[i][1] - dbcenter[1];
- v[i][2] = vertex[i][2];
-
- t[i][0] = texcoord[i][0] + 0.025;
- t[i][1] = texcoord[i][1];
+ float* vc = vertex[i];
+ v[i][0] = vc[0] - dbcenter[0];
+ v[i][1] = vc[1] - dbcenter[1];
+ v[i][2] = vc[2];
+
+ float* tc = texcoord[i];
+ t[i][0] = tc[0];
+ t[i][1] = tc[1];
}
Geometry *geom = new Geometry;

0 comments on commit be5dd07

Please sign in to comment.