PDA

View Full Version : GL_TEXTURE_RECTANGLE_NV problems



thw2
04-17-2001, 01:25 AM
After glEnable(GL_TEXTURE_RECTANGLE_NV) normal 2D textures aren't working any more. why ?

Michail Bespalov
04-17-2001, 04:17 AM
Because it takes priority over 2d.

From lowest priority to highest priority: GL_TEXTURE_1D, GL_TEXTURE_2D,
GL_TEXTURE_RECTANGLE_NV, GL_TEXTURE_3D, GL_TEXTURE_CUBE_MAP_ARB.

Michail.

DaViper
04-17-2001, 04:30 AM
I think you can have only 1 texturing state enabled at one time, so you have to disable GL_TEXTURE_RECTANGLE_NV before you enable GL_TEXTURE_2D.

Chris

DaViper
04-17-2001, 05:27 AM
Oooops might have be wrong on that one, it actually should be possible to bind a 2d Texture. But you have to have GL_TEXTURE_2D enabled.

Chris

mcraighead
04-17-2001, 06:26 AM
You can have >1 texturing state enabled. All but the highest-priority one are ignored.

- Matt

thw2
04-18-2001, 12:33 AM
thx for the help