If I want to draw lines, pure lines with GL_LINES primitive with only two positions.
Should I turn ON the glPolygonMode to GL_LINE too ? Or set the drawing primitive to GL_LINES is enough ?
EDIT: I use modern OpenGL technics
It is useless and superfluous to change the polygon mode, when rendering line primitives. As the name suggests, polygon mode only affects polygons (triangle primitives), but it doesn't affect line and point primitives. glPolygonMode just controls the rasterization of polygons (triangles).
GL_LINESprimitive. For any triangle primitive you would need at least 3 vertices (points).glPolygonMode