private void InitGL() { GraphicsMode mode = new GraphicsMode(32, 24, 8, 8); display = new GLControl(mode, 3, 3, GraphicsContextFlags.Default); display.Dock = DockStyle.Fill; display.SizeChanged += Display_SizeChanged; display.Paint += Display_Paint; display.MakeCurrent(); renderer.Initialize(); panelDisplayArea.Controls.Add(display); }