From 6abd21e71d259dda333fb070b58e45b287b1e548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Mon, 3 Aug 2015 14:12:05 +0200 Subject: [PATCH] explicitly set the OpenTK GL context --- OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs b/OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs index 77888e44fb..dfa9d41970 100644 --- a/OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs +++ b/OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs @@ -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();