Remove static init of GetCurrentContext
authorStefanos A <stapostol@gmail.com>
Fri, 8 Nov 2013 09:41:58 +0000 (10:41 +0100)
committerStefanos A <stapostol@gmail.com>
Sat, 9 Nov 2013 14:07:17 +0000 (15:07 +0100)
commitec2c64ee15f2f1ec5a0fe11a63e60fb0fbf5a7c0
treea54beac38f1274b66ed62d5b1156250c81f5a3d4
parent440e3fe24821615405a21a619ff338cac6c2c2f4
Remove static init of GetCurrentContext

The static initializer of GetCurrentContext would always default to the
desktop PlatformFactory, which caused problems when trying to run OpenGL
ES code on the desktop. The initializer is now removed and
GetCurrentContext is set in the context constructor, before creating any
contexts.
Source/OpenTK/Graphics/GraphicsContext.cs