mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 16:15:34 +00:00
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
ced435c072
commit
9efa051ba3
|
@ -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