added gl, fixed sdl