hedgewars/hwengine.pas
changeset 12849 22cc3d82905a
parent 12836 1fbc0d5a82d0
child 12860 1b2b84315d27
child 13045 a87d3119c962
--- a/hedgewars/hwengine.pas	Sat Nov 25 09:39:52 2017 -0500
+++ b/hedgewars/hwengine.pas	Sat Nov 25 09:40:43 2017 -0500
@@ -548,6 +548,9 @@
 {$IFDEF USE_TOUCH_INTERFACE}uTouch.freeModule;{$ENDIF}  //stub
 {$IFDEF ANDROID}GLUnit.freeModule;{$ENDIF}
         uTextures.freeModule;
+        SDL_GL_DeleteContext(SDLGLcontext);
+        SDL_DestroyWindow(SDLwindow);
+        SDL_Quit()
         end;
 
     uIO.freeModule;