Added missing GL checks