aboutsummaryrefslogtreecommitdiff
path: root/sources/TZR_Quit.c
diff options
context:
space:
mode:
Diffstat (limited to 'sources/TZR_Quit.c')
-rw-r--r--sources/TZR_Quit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/TZR_Quit.c b/sources/TZR_Quit.c
index 6925ac5..092e817 100644
--- a/sources/TZR_Quit.c
+++ b/sources/TZR_Quit.c
@@ -34,6 +34,10 @@ TZR_Quit(void)
SDL_DestroyRenderer(___tzr_renderer);
___tzr_renderer = NULL;
}
+ if (___tzr_gl_ctx != NULL) {
+ SDL_GL_DeleteContext(___tzr_gl_ctx);
+ ___tzr_gl_ctx = NULL;
+ }
if (___tzr_window != NULL) {
SDL_DestroyWindow(___tzr_window);
___tzr_window = NULL;