Fix erroneous GL API call