From 7cc3e922eec3500836ab508f920470b5d886cb3b Mon Sep 17 00:00:00 2001 From: thefiddler Date: Wed, 23 Jul 2014 09:03:18 +0200 Subject: [PATCH] [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. --- Source/OpenTK/Platform/Factory.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/OpenTK/Platform/Factory.cs b/Source/OpenTK/Platform/Factory.cs index cbb3c06..4e061e8 100644 --- a/Source/OpenTK/Platform/Factory.cs +++ b/Source/OpenTK/Platform/Factory.cs @@ -46,6 +46,11 @@ namespace OpenTK.Platform #region Constructors + static Factory() + { + Toolkit.Init(); + } + public Factory() { // Ensure we are correctly initialized. -- 2.7.4