whenever the window is resized SDL trashes the OpenGL context, so SDL_SetVideoMode needs to be called again.  SDL_Surface was doing nothing, removed it.