Hello, is there a way to do the same thing that the openGL command glPushAttrib() does ?
Because I have this problem : I draw an object without texture then I draw a second object with a texture. When my screen is updated (second call to my display function), my first object becomes textured !!
No, there is no such equivalent. You need to keep track of the render states you set and make sure you disable texturing if it was previously enabled when you want to render an untextured object.