reset the OpenTK OpenGL context when destroying the SDL OpenGL context
This commit is contained in:
parent
fa9120c4ef
commit
6f7d3bfa40
|
@ -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.");
|
||||
|
|
Reference in a new issue