mirror of
https://github.com/yawut/SDL.git
synced 2026-08-28 03:34:44 -05:00
Restore everything when a function pointer is NULL
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user