Utility/PixelFormat: Fix ComputeSize for DXT formats
Former-commit-id: c8a5ef0da9f87e944c0085e196b02f10fc3dd7d0 [formerly 957bd2cc1c8d8f5eac590e82f408d863975ecf55] Former-commit-id: c9b2436d570ea44e5317de177ab6696ee3994e68
This commit is contained in:
parent
ce90bd43d6
commit
f370012890
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue