View Full Version : "unbinding" textures

03-10-2002, 01:49 AM
Hi, whenever I bind a texture and the draw a line which is supposed to have lets say glColor3f(1.0f, 1.0f, 1.0f), then the lines are drawn perfectly, but the color is somehow wrong.
It goes through severel different shades of yellow, but isn't white at all.
Why not?

03-10-2002, 02:29 AM
That's because your line is textured. If you don't specify texture coordinates, the whole thing will be modulated (at least that's the default behaviour) with a single texel. To get rid of that, simply temporarily disable texturing, eg glDisable(GL_TEXTURE_2D); .