I texture map a red texture and after that draw a blue line (defined with glColor3f) and the line gets the color of the texture (red instead of blue). why?
The texture env mode is GL_REPLACE. I don’t define any lighting. No alpha blending. Very simple program with only minimal settings.
could you give the code fragment…
I found that calling glDisable(GL_TEXTURE_2D) before drawing the line solve the problem! Have I missed something elementary while learning OpenGL or is it a bug in the driver?
OpenGl is a state machine so you have to disable texturing bfore you daw something without texture