projects
/
platform
/
core
/
csapi
/
opentk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d6b689
)
[OpenTK] Re-add static Factory constructor
author
thefiddler
<stapostol@gmail.com>
Wed, 23 Jul 2014 07:03:18 +0000
(09:03 +0200)
committer
thefiddler
<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
patch
|
blob
|
history
diff --git
a/Source/OpenTK/Platform/Factory.cs
b/Source/OpenTK/Platform/Factory.cs
index
cbb3c06
..
4e061e8
100644
(file)
--- 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.