From e04611948789a99e7da6f44740049218fe1686a6 Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 4 Jun 2015 16:15:26 +0200 Subject: [PATCH] Fix for unnecessary terrain texture coordinate arrays --- components/terrain/terraingrid.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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));