changed sdl_renderpresent to sdl_gl_swapwindow