I made this code, just to test openGL:
glLightfv(GL_LIGHT0, GL_AMBIENT, red); draw_object_A(); draw_object_B(); draw_object_C(); glLightfv(GL_LIGHT0, GL_AMBIENT, green); draw_object_D();
All the objects (A, B, C, D) are green!!!
However, when I am resizing my window, A, B, C are red and D is green!
Somedy can tell me what is the standard behavior? (everything green or just D green)
Somebody has an idea of what is wrong when there isn’t the right behavior?