Просмотр исходного кода

Fix corruption of file encoding.

Johan Mattsson 2 лет назад
Родитель
Сommit
70a464b3f4
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      Engine/source/gfx/bitmap/ddsFile.cpp

+ 3 - 3
Engine/source/gfx/bitmap/ddsFile.cpp

@@ -123,7 +123,7 @@ U32 DDSFile::getSurfaceSize( U32 height, U32 width, U32 mipLevel ) const
    if(mFlags.test(CompressedData))
    {
       // From the directX docs:
-      // max(1, width ÷ 4) x max(1, height ÷ 4) x 8(DXT1) or 16(DXT2-5)
+      // max(1, width ÷ 4) x max(1, height ÷ 4) x 8(DXT1) or 16(DXT2-5)
 
       U32 sizeMultiple = 0;
 
@@ -178,7 +178,7 @@ U32 DDSFile::getSizeInBytes( GFXFormat format, U32 height, U32 width, U32 mipLev
       "DDSFile::getSizeInBytes - Must be a Block Compression format!" );
 
    // From the directX docs:
-   // max(1, width ÷ 4) x max(1, height ÷ 4) x 8(DXT1) or 16(DXT2-5)
+   // max(1, width ÷ 4) x max(1, height ÷ 4) x 8(DXT1) or 16(DXT2-5)
 
    U32 sizeMultiple = 0;
    if ( format == GFXFormatBC1 || format == GFXFormatBC1_SRGB || format == GFXFormatBC4)
@@ -808,4 +808,4 @@ DefineEngineFunction( getActiveDDSFiles, S32, (),,
    "@ingroup Rendering\n" )
 {
    return DDSFile::smActiveCopies;
-}
+}