From 7344323b9edbea3263528d8b89bd78762e1d07bf Mon Sep 17 00:00:00 2001 From: wareya Date: Sat, 9 Jun 2018 10:31:51 -0400 Subject: [PATCH] remove indentation from blank lines --- components/esmterrain/storage.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/esmterrain/storage.cpp b/components/esmterrain/storage.cpp index fd04d90b9..dadc64f57 100644 --- a/components/esmterrain/storage.cpp +++ b/components/esmterrain/storage.cpp @@ -433,7 +433,7 @@ namespace ESMTerrain // We need to upscale the blendmap 2x with nearest neighbor sampling to look like Vanilla const int imageScaleFactor = 2; const int blendmapImageSize = blendmapSize * imageScaleFactor; - + for (int i=0; i image (new osg::Image); image->allocateImage(blendmapImageSize, blendmapImageSize, 1, format, GL_UNSIGNED_BYTE); unsigned char* pData = image->data(); - + for (int y=0; ysecond; int blendIndex = (pack ? static_cast(std::floor((layerIndex - 1) / 4.f)) : layerIndex - 1); int channel = pack ? std::max(0, (layerIndex-1) % 4) : 0; - + int alpha = (blendIndex == i) ? 255 : 0; - + int realY = (blendmapSize - y - 1)*imageScaleFactor; int realX = x*imageScaleFactor; - + pData[((realY+0)*blendmapImageSize + realX + 0)*channels + channel] = alpha; pData[((realY+1)*blendmapImageSize + realX + 0)*channels + channel] = alpha; pData[((realY+0)*blendmapImageSize + realX + 1)*channels + channel] = alpha;