protected override void OnResize(EventArgs e) { if (ClientSize.Width < 640) { ClientSize = new Size(640, ClientSize.Height); } if (ClientSize.Height < 480) { ClientSize = new Size(ClientSize.Width, 480); } _frameBuffer.SetSize(Width, Height); GL.Viewport(ClientRectangle); //GL.MatrixMode(MatrixMode.Projection); //GL.LoadIdentity(); //GL.Ortho(0, ClientRectangle.Width, ClientRectangle.Height, 0, Camera.NearPlane, Camera.FarPlane); Camera.UpdateProjectionMatrix(); }