From 5067db39f8435b24cebc645ae73364e3d0b32733 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 16 Oct 2017 10:08:18 +0100 Subject: [PATCH] Moved bracket to be consistent with the rest of the OSG --- src/osg/ImageUtils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osg/ImageUtils.cpp b/src/osg/ImageUtils.cpp index 74f0ae9f4..de965b230 100644 --- a/src/osg/ImageUtils.cpp +++ b/src/osg/ImageUtils.cpp @@ -717,7 +717,8 @@ OSG_EXPORT osg::Image* createImageWithOrientationConversion(const osg::Image* sr unsigned int pixelSizeInBits = srcImage->getPixelSizeInBits(); unsigned int pixelSizeInBytes = pixelSizeInBits/8; unsigned int pixelSizeRemainder = pixelSizeInBits%8; - if (dxtc_tool::isDXTC(srcImage->getPixelFormat())) { + if (dxtc_tool::isDXTC(srcImage->getPixelFormat())) + { unsigned int DXTblockSize = 8; if ((srcImage->getPixelFormat() == GL_COMPRESSED_RGBA_S3TC_DXT3_EXT) || (srcImage->getPixelFormat() == GL_COMPRESSED_RGBA_S3TC_DXT5_EXT)) DXTblockSize = 16; unsigned int DXTblocksWidht = (srcImage->s() + 3) / 4;//width in 4x4 blocks