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:
parent
c3d643f2fa
commit
babb202015
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue