Utility/PixelFormat: Fix ComputeSize for DXT formats

Former-commit-id: fbc4390a2ff6747a2e7047a10d0a47c64fa59d1c [formerly d9df1b4535857c96ab396b8afcb69658528093f7]
Former-commit-id: cb591414508a1d4b5ebc217b4b063a795020309e
This commit is contained in:
Lynix 2016-06-02 19:10:33 +02:00
parent 0ee76b30a9
commit a3d681b802
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");