Cleanup window and renderer for SDL2

This commit is contained in:
Joshua Granick
2015-01-14 23:07:54 -08:00
parent 75566d3dc4
commit 8fe86596aa
2 changed files with 10 additions and 2 deletions

View File

@@ -24,7 +24,11 @@ namespace lime {
SDLRenderer::~SDLRenderer () {
if (sdlRenderer) {
SDL_DestroyRenderer (sdlRenderer);
}
}

View File

@@ -61,7 +61,11 @@ namespace lime {
SDLWindow::~SDLWindow () {
if (sdlWindow) {
SDL_DestroyWindow (sdlWindow);
}
}