OpenGL Tips
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); should put in the main circle, so if we change the display, the previous buffer can clear completely and the new image will draw correctly.
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); should put in the main circle, so if we change the display, the previous buffer can clear completely and the new image will draw correctly.