get rid of deprecated SDL_ListModes, use SDL_GetDisplayMode
don't forget to initialize OpenGL context