An OpenGL command is executed when it's called in immediate mode or when the display list that it's a part of is called.
OpenGL Programming Guide