PDA

View Full Version : glCompressedTexImage2D and NPOT textures



skynet
10-13-2006, 01:04 AM
Hello,
I´m trying to upload a precompressed mipmap chain (loaded from a .dds file) using glCompressedTexImage2D(). Unfortunately I´m getting a GL_INVALID_OPERATION already at mipmap level 0. The card (GF7900) supports NPOT textures, so I supposed it should "just work".

Am I doing something wrong or is the hardware not supporting NPOT-DXTn-compressed textures?

sqrt[-1]
10-13-2006, 04:52 PM
I imagine the NPOT textures still have to be multiples of 4 for DXT compression to work at all.

Bob
10-13-2006, 05:01 PM
Originally posted by sqrt[-1]:
I imagine the NPOT textures still have to be multiples of 4 for DXT compression to work at all. As far as I know, there have never been any size requirements by the format itself. I mean, 2x2 and 1x1 textures are possible, and these dimensions are not multiples of four. The compression works in blocks of 4x4, but that doesn't mean the image itself must be a multiple of 4.

edit: Well, check out issue 10 (http://www.opengl.org/registry/specs/ARB/texture_non_power_of_two.txt) .