sdl: fixed glimp_detectavailablemodes, refs #570