Utility/PixelFormat: Fix ComputeSize for DXT formats
Former-commit-id: fbc4390a2ff6747a2e7047a10d0a47c64fa59d1c [formerly d9df1b4535857c96ab396b8afcb69658528093f7] Former-commit-id: cb591414508a1d4b5ebc217b4b063a795020309e
This commit is contained in:
parent
0ee76b30a9
commit
a3d681b802
|
|
@ -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");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue