title: Reuse vertex attribute buffer as index buffer?
body: <p>Can I use a VBO which I initialise like this:</p>
  
  <pre><code>GLuint bufferID;
  glGenBuffers(1,&amp;BufferID);
  glBindBuffer(GL_ARRAY_BUFFER,bufferID);
  glBufferData(GL_ARRAY_BUFFER,nBytes,indexData,GL_DYNAMIC_DRAW);
  </code></pre>
  
  <p>as an index buffer, like this:</p>
  
  <pre><code>glBindBuffer(GL_ELEMENT_ARRAY_BUFFER,bufferID);
  /* ... set up vertex attributes, NOT using bufferID in the process ... */
  glDrawElements(...); 
  </code></pre>
  
  <p>I would like to use the buffer mostly as an attribute buffer and occasionally as an index buffer (but never at the same time). </p>