(Glide2GL) Refactor clip_tri