Fixed gl on macbook ubuntu