mirror of
https://github.com/joel16/SDL2.git
synced 2024-12-03 16:50:47 +00:00
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:
parent
6927f1cbe4
commit
154c8f584c
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user