Textures and Colors

I’ve got a question. Does anybody knows why colors of non textured objects changes when I wrote in my code glEnable(GL_TEXTURE_2D)?? I’ve already wrote glEnable(GL_COLOR_MATERIAL) and it didn’t worked.
Thank’s for tips

Originally posted by AleksX:
I’ve got a question. Does anybody knows why colors of non textured objects changes when I wrote in my code glEnable(GL_TEXTURE_2D)?? I’ve already wrote glEnable(GL_COLOR_MATERIAL) and it didn’t worked.
Thank’s for tips

Don’t flame me if it sounds insulting but did you turn texturing off ?

Joel.

yes, i have an answer:

that’ because you enabled texturing, and even if don’t specifiy any mapping-coorinates, there are some used.
in immediate mode the last specified mapping-coordiantes are used for EVERY point. so your (last specified)texture is everywhere on the object, but you can only see one texel.

btw.:
maybe you should discuss such “advanced problems” in the beginner forum…

It worked. Thanks both of you!