explicitly set the OpenTK GL context

This commit is contained in:
Matthias Mailänder
2015-08-03 14:12:05 +02:00
parent 17f3466451
commit 6abd21e71d

View File

@@ -76,6 +76,7 @@ namespace OpenRA.Platforms.Default
context = SDL.SDL_GL_CreateContext(window);
SDL.SDL_GL_MakeCurrent(window, context);
GraphicsContext.CurrentContext = context;
GL.LoadAll();
ErrorHandler.CheckGlVersion();