private void Form1_SizeChanged(object sender, EventArgs e) { if (GL != null) { GL.SetViewportSize(this.ClientSize.Width, this.ClientSize.Height); readyCache = false; } }