[OpenTK] Re-add static Factory constructor
authorthefiddler <stapostol@gmail.com>
Wed, 23 Jul 2014 07:03:18 +0000 (09:03 +0200)
committerthefiddler <stapostol@gmail.com>
Wed, 23 Jul 2014 07:03:18 +0000 (09:03 +0200)
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.

Source/OpenTK/Platform/Factory.cs

index cbb3c06..4e061e8 100644 (file)
@@ -46,6 +46,11 @@ namespace OpenTK.Platform
 
         #region Constructors
 
+        static Factory()
+        {
+            Toolkit.Init();
+        }
+
         public Factory()
         {
             // Ensure we are correctly initialized.