Reputation: 5694
it seems glCompressedTexImage2D
does not handle GL_TEXTURE_RECTANGLE
..
I am trying to load Valve's VTF texture file, and most of them seems to be rectangular with DXT1 compression.
how do I work around this??
Upvotes: 0
Views: 149
Reputation: 474406
You could do the obvious thing: stop using rectangle textures for them. Regular textures can be rectangular.
The only reason to use rectangle textures is because you want to sample from them with non-normalized texture coordinates.
Upvotes: 1