Hello all
i am a beginner in OpenGL, i am using TAO framework with C#,
i noticed that my render control stooped updating while re-sizing the window, i had overcome the problem of updating the content of the render control by calling the my game loop function in the event handler of the form re-size event

but the rotation still have some work it is still not updated till the re-sizing process stop
here is my code


void GameLoop(double elapsedTime)
{
Gl.glViewport(0, 0, _openGLControl.Width, _openGLControl.Height);
////////////////////
float r = Color.DarkBlue.R / 255.0f;
float g = Color.DarkBlue.G / 255.0f;
float b = Color.DarkBlue.B / 255.0f;
float a = Color.DarkBlue.A / 255.0f;
Gl.glClearColor(r, g, b, a);
Gl.glClear(Gl.GL_COLOR_BUFFER_BIT);
Gl.glRotated(40 * elapsedTime, 0, 1, 0);
Gl.glBegin(Gl.GL_TRIANGLES);
{
Gl.glColor3d(1, 1, 0);
Gl.glVertex3d(-0.5,-0.5, 0);
Gl.glColor3d(0, 1, 1);
Gl.glVertex3d(0.5, -0.5, 0);
Gl.glColor3d(1, 0, 1);
Gl.glVertex3d(0, 0.5, 0);
}
Gl.glEnd();
Gl.glFinish();
_openGLControl.Refresh();
}

private void Form1_Resize(object sender, EventArgs e)
{
PreciseTimer _timer = new PreciseTimer();
GameLoop(_timer.GetElapsedTime());
}