Restore everything when a function pointer is NULL

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40991
This commit is contained in:
Patrice Mandin 2004-11-26 16:13:24 +00:00
parent 6927f1cbe4
commit 154c8f584c

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)
{