mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-03-29 18:06:52 +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);
|
Context = implementation.CreateContext(major, minor, flags);
|
||||||
MakeCurrent();
|
MakeCurrent();
|
||||||
((IGraphicsContextInternal)this.Context).LoadAll();
|
if (!DesignMode)
|
||||||
|
((IGraphicsContextInternal)Context).LoadAll();
|
||||||
|
|
||||||
base.OnHandleCreated(e);
|
base.OnHandleCreated(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue