fixing background scrolling: making sure texture coord is never higher than 1