[email protected] 8 years ago
parent
commit
f414afb575
1 changed files with 2 additions and 1 deletions
  1. 2 1
      oxygine/src/oxygine/core/oxygine.cpp

+ 2 - 1
oxygine/src/oxygine/core/oxygine.cpp

@@ -162,6 +162,8 @@ namespace oxygine
 
         void focusLost()
         {
+            mc().removeUnused();
+
             if (!LOST_RESET_CONTEXT)
                 return;
 
@@ -170,7 +172,6 @@ namespace oxygine
             SDL_GL_DeleteContext(_context);
             _context = 0;
 #endif
-
         }
 
         void focusAcquired()