comparison test/testgl2.c @ 2328:91e601d9df8b

re: bug#563. checking in some commented out trace code and a fix so that the in testalpha.c the background only flashes when alpha == 255. The problem that is being fixed is caused by clearing SDL_COPY_RLE_COLORKEY without setting SDL_COPY_RLE_DESIRED in SDL_UnRELSurface.
author Bob Pendleton <bob@pendleton.com>
date Fri, 14 Mar 2008 18:17:49 +0000
parents 6630fefab312
children 82e60908fab1
comparison
equal deleted inserted replaced
2327:7b53a8401195 2328:91e601d9df8b
22 /* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */ 22 /* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */
23 static void 23 static void
24 quit(int rc) 24 quit(int rc)
25 { 25 {
26 if (context) { 26 if (context) {
27 SDL_GL_MakeCurrent(0, NULL); 27 /* SDL_GL_MakeCurrent(0, NULL); *//* doesn't do anything */
28 SDL_GL_DeleteContext(context); 28 SDL_GL_DeleteContext(context);
29 } 29 }
30 CommonQuit(state); 30 CommonQuit(state);
31 exit(rc); 31 exit(rc);
32 } 32 }