updated to latest love-android (changeset 7b5f223900b)

This commit is contained in:
fysx
2015-01-22 10:48:45 +01:00
parent 31cd05551e
commit 542c029666
22 changed files with 529 additions and 53 deletions
+9 -3
View File
@@ -55,12 +55,18 @@ Window::Window()
Window::~Window()
{
if (context)
{
graphics::Graphics *gfx = Module::getInstance<graphics::Graphics>(Module::M_GRAPHICS);
if (gfx != nullptr)
gfx->unSetMode();
SDL_GL_DeleteContext(context);
}
if (window)
SDL_DestroyWindow(window);
if (context)
SDL_GL_DeleteContext(context);
SDL_QuitSubSystem(SDL_INIT_VIDEO);
}