changeset 990:8e20c48a9c13

Restore everything when a function pointer is NULL
author Patrice Mandin <patmandin@gmail.com>
date Fri, 26 Nov 2004 16:13:24 +0000
parents 475166d13b44
children 12b13601a544
files test/testdyngl.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/testdyngl.c	Thu Nov 25 15:47:49 2004 +0000
+++ b/test/testdyngl.c	Fri Nov 26 16:13:24 2004 +0000
@@ -106,6 +106,8 @@
 		printf("Unable to init SDL : %s\n",SDL_GetError());
 		exit(1);
 	}
+
+	atexit(SDL_Quit);
 	
 	if (SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER,1)<0)
 	{