Browse Source

Re-initialise after context deletion. Fixes #12

woollybah 7 years ago
parent
commit
407f4d7682
1 changed files with 2 additions and 0 deletions
  1. 2 0
      gl2sdlmax2d.mod/gl2sdlmax2d.bmx

+ 2 - 0
gl2sdlmax2d.mod/gl2sdlmax2d.bmx

@@ -758,6 +758,8 @@ Type TGL2Max2DDriver Extends TMax2DDriver
 			TMax2DGraphics.ClearCurrent
 
 			SDLGraphicsDriver().SetGraphics Null
+			
+			inited = Null
 
 			Return
 		EndIf