You are not polling for events (if only SDL_QuitEvent). On some platforms that is necessary for the window to appear.