yngccc
yngccc

Reputation: 5694

glCompressedTexImage2D for rectangular texture

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

Answers (1)

Nicol Bolas
Nicol Bolas

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

Related Questions