Crash on exit of sdlgears demo

Fellow SDL hackers,

I am working with the sdlgears demo to learn how to use SDL with OpenGL.
I’ve made a slight modification so the app will run in fullscreen mode;
I’ve altered the call to SDL_SetVideoMode as follows:

screen = SDL_SetVideoMode(800, 600, 16, SDL_OPENGL|SDL_FULLSCREEN);

It runs fine, but when I exit the app my system reboots. I am running
on Windows NT SP6, running stock OpenGL (not Mesa). I’ve done some
searching on the web and in the mailing list archives, but haven’t found
any clues. Anyone have a suggestion before I start blindly hacking on
the code?

Thanks in advance for any help,

Thad Phetteplace