[ion/simulator] Use shutdown instead of quit

This commit is contained in:
Romain Goyet
2020-09-17 21:23:33 -04:00
committed by Léa Saviot
parent 2f2e45a6a5
commit 543d3d540e
3 changed files with 3 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ void init(SDL_Renderer * renderer) {
);
}
void quit() {
void shutdown() {
SDL_DestroyTexture(sFramebufferTexture);
sFramebufferTexture = nullptr;
}

View File

@@ -9,7 +9,7 @@ namespace Simulator {
namespace Display {
void init(SDL_Renderer * renderer);
void quit();
void shutdown();
void draw(SDL_Renderer * renderer, SDL_Rect * rect);

View File

@@ -122,7 +122,7 @@ void quit() {
#if !EPSILON_SDL_SCREEN_ONLY
Layout::quit();
#endif
Display::quit();
Display::shutdown();
SDL_DestroyWindow(sWindow);
sWindow = nullptr;
SDL_Quit();