Advertisement

DXT5 won't load when height is greater than width

Started by October 14, 2019 04:15 PM
1 comment, last by Ed Welch 4 years, 11 months ago

I am having a problem loading DXT5 textures. Everything works fine, unless I use a texture which has a height greater than the width and I enable mipmaps (i.e GL_LINEAR_MIPMAP_LINEAR)

The textures are created using Compressonator and the code to load the textures is here: https://github.com/paroj/nv_dds/blob/master/nv_dds.cpp

I finally got it working. Just added this line:     glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, mipMapCount-1);

Don't really understand why I needed this though o.O

This topic is closed to new replies.

Advertisement