Utility/PixelFormat: Fix ComputeSize for DXT formats
Former-commit-id: e16835382aa80ea53c7cdc747cc0b04c493cb645 [formerly 565512d61f3ef1131c89cc0c1ffc140ff1112f91] Former-commit-id: 95e9c965e95176857452a7c270cbecd75e86cd8d
This commit is contained in:
parent
e94dc90f06
commit
baf9994675
|
|
@ -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