mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-22 14:31:14 +00:00
[OpenTK] Re-add static Factory constructor
There are static methods that rely on `OpenTK.Platform.Factory` having a static constructor. We need to fix those first, before we can remove this constructor.
This commit is contained in:
parent
9d6b6891e6
commit
7cc3e922ee
|
@ -46,6 +46,11 @@ namespace OpenTK.Platform
|
||||||
|
|
||||||
#region Constructors
|
#region Constructors
|
||||||
|
|
||||||
|
static Factory()
|
||||||
|
{
|
||||||
|
Toolkit.Init();
|
||||||
|
}
|
||||||
|
|
||||||
public Factory()
|
public Factory()
|
||||||
{
|
{
|
||||||
// Ensure we are correctly initialized.
|
// Ensure we are correctly initialized.
|
||||||
|
|
Loading…
Reference in a new issue