更新时间:2023-01-05 15:34:10
您没有清除帧缓冲区,这意味着您正在前一帧的顶部绘制每一帧.尝试使用 glClearColor(0.0f, 0.0f, 0.0f, 1.0f );
和您想要的颜色.
You are not clearing the frame buffer, which means that you are drawing each frame on top of the previous frame. Try using glClearColor(0.0f, 0.0f, 0.0f, 1.0f );
with the color you desire.