title: Drawing many circles using GL_LINE_LOOP
body: <p>I have problem rendering many circles on the screen using these code. </p>
  
  <pre><code>float degree = 0;
  unsigned int ctr = 0;
  for(int xi = -3200; xi &lt; 3200; xi+= 2*r)
  {
      for(int yi = 4800; yi &gt; -4800; yi-= 2*r)
      {
          for(int i = 0; i &lt; 360; ++i)
          {
              vertices.push_back(xi + r * cos(float(degree)));
              vertices.push_back(yi + r * sin(float(degree)));
              vertices.push_back(-8);
  
              indices.push_back(i+ctr);               
              ++degree;
          }
          ctr += 360;
          degree = 0;
      }
  }
  
  unsigned int i = 0;
  for(i = 0; i &lt; indices.size()/360; ++i) 
  {
      glEnableClientState(GL_VERTEX_ARRAY);
      glVertexPointer(3, GL_FLOAT, 0, &amp;vertices[i*360]);
      glLineWidth(1);
      glDrawElements(GL_LINE_LOOP, 360, GL_UNSIGNED_INT, &amp;indices[i*360]);
      glDisableClientState(GL_VERTEX_ARRAY);
  }
  </code></pre>
  
  <p>Here is the result
  <img src="https://i.imgur.com/nBp9Y.jpg" alt="circles"></p>
  
  <p>In addition, the program crashes when I change xi value to [-6400, 6400]</p>