#182 wrong # of mipmaps reported for DXT?

open
nobody
None
5
2009-07-02
2009-07-02
Ron
No

In the attached *.dds texture, we were expecting that Devil would report that it had 10 mipmaps, but it reports 9. The Microsoft DirectX Texture Tool reports 10. Your documentation in section 9.1 says that it will create "All mipmap levels down to 1x1". Yet, getting the IL_NUM_MIPMAPS integer returns 9.

Is this a bug?

If I make our code pretend that DevIl returned one additional mipmap, the byte data for this texture crashes a later call to glCompressedTexImage2DARB. So, I'm guessing that DevIl does not actually generate the 1x1 mipmap.

Discussion

  • Ron
    Ron
    2009-07-02

    512x512 DXT1 texture with 10 mipmaps

     
    Attachments