7d11a67a4e
glDrawArrays() for a closed line loop (polygon) crashes in some platforms, but why we couldn't find any reason for. Replaced code with regular glBegin() and glEnd().