draw a triangle in gl 3.1