reset the OpenTK OpenGL context when destroying the SDL OpenGL context

This commit is contained in:
Gered 2013-08-17 16:48:11 -04:00
parent fa9120c4ef
commit 6f7d3bfa40

View file

@ -487,6 +487,7 @@ namespace Blarg.GameFramework
}
SDL.SDL_GL_DeleteContext(_glContext);
OpenTK.Graphics.GraphicsContext.CurrentContext = IntPtr.Zero;
_glContext = IntPtr.Zero;
Platform.Services.Logger.Info(LOOPER_TAG, "OpenGL context destroyed.");