Summary: | calculated dimensions for MipMaps smaller than 16x16 | ||
---|---|---|---|
Product: | [JogAmp] Jogl | Reporter: | Sven Gothel <sgothel> |
Component: | util | Assignee: | Sven Gothel <sgothel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | michael.esemplare |
Priority: | P3 | ||
Version: | 1 | ||
Hardware: | All | ||
OS: | all | ||
Type: | DEFECT | SCM Refs: |
82d7bae212ad5a540a29003aaec8c7e026615f68
82927b0e75a2a93f3728d158295a6ae25dddeecf
|
Workaround: | --- |
Description
Sven Gothel
2010-03-24 07:51:34 CET
Besides compression, the size calculation is incorrect for other mipmap sequences. The current calculation uses a divisor of 4, which is true for the difference between all mipmap levels except the smallest on occasion. The following sequence for example: 64x32 RGB Uncompressed DDS Image with generated mipmaps. 64x32 -> 6144 bytes 32x16 -> 1536 bytes 16x8 -> 384 bytes 8x4 -> 96 bytes 4x2 -> 24 bytes 2x1 -> 6 bytes 1x1 -> 3 bytes 6/4 != 3 Mipmap level 6 didn't match expected data size (expected 1, got 3)) Created patch and unit test. Ready for pull. |