test/testgl2.c
changeset 2328 91e601d9df8b
parent 2232 6630fefab312
child 3099 82e60908fab1
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 }