test/testdyngl.c
changeset 990 8e20c48a9c13
parent 910 4ab6d1fd028f
child 1151 be9c9c8f6d53
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);