(Glide2GL) Some cleanups to render_tri