Utility/PixelFormat: Fix ComputeSize for DXT formats

Former-commit-id: e16835382aa80ea53c7cdc747cc0b04c493cb645 [formerly 565512d61f3ef1131c89cc0c1ffc140ff1112f91]
Former-commit-id: 95e9c965e95176857452a7c270cbecd75e86cd8d
This commit is contained in:
Lynix 2016-06-02 19:10:33 +02:00
parent e94dc90f06
commit baf9994675
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ namespace Nz
case PixelFormatType_DXT1:
case PixelFormatType_DXT3:
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:
NazaraError("Unsupported format");