From d1b6556bd125f52744ff12b8dd2e644a1515205f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 17 Jul 2017 19:27:22 +0300 Subject: Do actual SDL2 graphics cleanup before exit. --- src/render/graphics.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/render/graphics.h') diff --git a/src/render/graphics.h b/src/render/graphics.h index 36f3ed721..6eb18dfab 100644 --- a/src/render/graphics.h +++ b/src/render/graphics.h @@ -120,6 +120,8 @@ class Graphics notfinal */ virtual ~Graphics(); + static void cleanUp(); + /** * Alignments for text drawing. */ @@ -518,14 +520,14 @@ class Graphics notfinal SDL_Window *restrict mWindow; #ifdef USE_SDL2 - SDL_Renderer *restrict mRenderer; + static SDL_Renderer *restrict mRenderer; #endif // USE_SDL2 #ifdef USE_OPENGL #ifdef USE_SDL2 - SDL_GLContext mGLContext; + static SDL_GLContext mGLContext; #else // USE_SDL2 - void *restrict mGLContext; + static void *restrict mGLContext; #endif // USE_SDL2 #endif // USE_OPENGL -- cgit v1.2.3-60-g2f50