From 6f7d3bfa4045b86d7e7eb11de1e021ea1974e42f Mon Sep 17 00:00:00 2001 From: gered Date: Sat, 17 Aug 2013 16:48:11 -0400 Subject: [PATCH] reset the OpenTK OpenGL context when destroying the SDL OpenGL context --- Blarg.GameFramework.SDL2/SDLLooper.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Blarg.GameFramework.SDL2/SDLLooper.cs b/Blarg.GameFramework.SDL2/SDLLooper.cs index af77bc1..7221640 100644 --- a/Blarg.GameFramework.SDL2/SDLLooper.cs +++ b/Blarg.GameFramework.SDL2/SDLLooper.cs @@ -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.");