replace GL_POLYGON to GL_TRIANGLE_FAN