diff --git a/components/esmterrain/storage.cpp b/components/esmterrain/storage.cpp index a1b4856e1..fd04d90b9 100644 --- a/components/esmterrain/storage.cpp +++ b/components/esmterrain/storage.cpp @@ -434,19 +434,14 @@ namespace ESMTerrain const int imageScaleFactor = 2; const int blendmapImageSize = blendmapSize * imageScaleFactor; - - const bool largeImage = true; - for (int i=0; i image (new osg::Image); - if(!largeImage) - image->allocateImage(blendmapSize, blendmapSize, 1, format, GL_UNSIGNED_BYTE); - else - image->allocateImage(blendmapImageSize, blendmapImageSize, 1, format, GL_UNSIGNED_BYTE); + image->allocateImage(blendmapImageSize, blendmapImageSize, 1, format, GL_UNSIGNED_BYTE); unsigned char* pData = image->data(); + for (int y=0; y