Utility/PixelFormat: Fix ComputeSize for DXT formats

Former-commit-id: c8a5ef0da9f87e944c0085e196b02f10fc3dd7d0 [formerly 957bd2cc1c8d8f5eac590e82f408d863975ecf55]
Former-commit-id: c9b2436d570ea44e5317de177ab6696ee3994e68
This commit is contained in:
Lynix 2016-06-02 19:10:33 +02:00
parent ce90bd43d6
commit f370012890
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ namespace Nz
case PixelFormatType_DXT1: case PixelFormatType_DXT1:
case PixelFormatType_DXT3: case PixelFormatType_DXT3:
case PixelFormatType_DXT5: case PixelFormatType_DXT5:
return (((width + 3) / 4) * ((height + 3) / 4) * (format == PixelFormatType_DXT1) ? 8 : 16) * depth; return (((width + 3) / 4) * ((height + 3) / 4) * ((format == PixelFormatType_DXT1) ? 8 : 16)) * depth;
default: default:
NazaraError("Unsupported format"); NazaraError("Unsupported format");