Hi, i using opengl in a project where i can draw some geometrical figures and it works pretty well (state 1).
Then, in a special state of my program i would like to render a WRML file using a method that is already define (state 2). That works fine too …
The problem is that when i come back to the state 1, the figura are being draw but the color is not coming out. The color is something like beige.
Something is happening inside the method to render WRML that chage some parameter on opengl and i dont know how to revert the changes.
This are the opengl sentences that the method does:
glTranslated( translation, translation, translation );
glScaled(scale, scale, scale);
glDisable(GL_FOG); // this is a global attribute
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
Thanks in advance.