Restore everything when a function pointer is NULL

This commit is contained in:
Patrice Mandin
2004-11-26 16:13:24 +00:00
parent c105d6512b
commit 8caa9e226d

View File

@@ -106,6 +106,8 @@ int main(int argc,char *argv[])
printf("Unable to init SDL : %s\n",SDL_GetError());
exit(1);
}
atexit(SDL_Quit);
if (SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER,1)<0)
{