Quote Originally Posted by tpascal
but if i load a texture i can't see the lines i render with this code anymore Confused , why?
Even when you are drawing lines a texture is still mapped to the lines vertex if you have glEnable(GL_TEXTURE_2D); when you have not defined any glTexCoord2f it apply as current 0,0; when not texture is loadedd in current active texture then 0,0 is color white; but when you load the texture then most likely a dark color texture is get into 0,0 so your line looks invisible (becouse you have a dark background). Use glDissable(GL_TEXTURE_2D); before rendering the lines.

good luck
thanks, it worked nice now!

Thanks for the attention guys, all doubts solved.