comparison test/testdyngl.c @ 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 4ab6d1fd028f
children be9c9c8f6d53
comparison
equal deleted inserted replaced
989:475166d13b44 990:8e20c48a9c13
104 if (SDL_Init(SDL_INIT_VIDEO)<0) 104 if (SDL_Init(SDL_INIT_VIDEO)<0)
105 { 105 {
106 printf("Unable to init SDL : %s\n",SDL_GetError()); 106 printf("Unable to init SDL : %s\n",SDL_GetError());
107 exit(1); 107 exit(1);
108 } 108 }
109
110 atexit(SDL_Quit);
109 111
110 if (SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER,1)<0) 112 if (SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER,1)<0)
111 { 113 {
112 printf("Unable to set GL attribute : %s\n",SDL_GetError()); 114 printf("Unable to set GL attribute : %s\n",SDL_GetError());
113 exit(1); 115 exit(1);