Has anything with compressed texture formats changed since OpenGL 2.1? I am getting funny results with my DDS loader. I can load uncompressed DDS files, but DXTC 1, 3, and 5 format are not loading correctly. Yes, I am using glCompressedImage2D() for those formats. The DDS files are power-of-two sized.
My code is something like this:
internalformat = GL_COMPRESSED_RGBA_S3TC_DXT5_EXT;
glPixelStorei(GL_PACK_ROW_LENGTH,mipwidth);
glPixelStorei(GL_UNPACK_ROW_LENGTH,mipwidth);
glPixelStorei(GL_PACK_ALIGNMENT,1);
glPixelStorei(GL_UNPACK_ALIGNMENT,1);
glCompressedTexImage2D(GL_TEXTURE_2D,mipmap,internalformat,mipwidth,mipheight,0,size,buf);
No OpenGL errors are produced.