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.

This commit is contained in:
the_fiddler 2009-09-02 22:56:46 +00:00
parent c3d643f2fa
commit babb202015

View file

@ -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);
}