diff --git a/components/terrain/terraingrid.cpp b/components/terrain/terraingrid.cpp index 7ae4d8511..322c15196 100644 --- a/components/terrain/terraingrid.cpp +++ b/components/terrain/terraingrid.cpp @@ -162,7 +162,8 @@ void TerrainGrid::loadCell(int x, int y) textureCompileDummy->getOrCreateStateSet()->setTextureAttributeAndModes(0, layerTextures.back()); } - for (unsigned int i=0; isetTexCoordArray(i, mCache.getUVBuffer()); osg::ref_ptr effect (new Terrain::Effect(layerTextures, blendmapTextures));