From 9efa051ba37f53d6b452987133089589e288a7aa Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Wed, 2 Sep 2009 22:56:46 +0000 Subject: [PATCH] Do not call IGraphicsContextInternal.LoadAll() in design-mode. The DummyGLContext would need extensive modifications to support the runtime checks performed by this call and the extra work is not worth it. --- Source/GLControl/GLControl.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/GLControl/GLControl.cs b/Source/GLControl/GLControl.cs index e72db4a3..1cf9580d 100644 --- a/Source/GLControl/GLControl.cs +++ b/Source/GLControl/GLControl.cs @@ -123,7 +123,8 @@ namespace OpenTK Context = implementation.CreateContext(major, minor, flags); MakeCurrent(); - ((IGraphicsContextInternal)this.Context).LoadAll(); + if (!DesignMode) + ((IGraphicsContextInternal)Context).LoadAll(); base.OnHandleCreated(e); }