title: OpenGL doesn't draw quads with GL_COLOR_ARRAY enabled
body: <p>I'm trying to get the following code working:</p>
  
  <pre><code>GLfloat *vbuffer = new GLfloat[24] {
      0,0,0,
      10,0,0,
      0,10,0,
      0,0,10,
      10,10,0,
      10,0,10,
      0,10,10,
      10,10,10
  };
  GLubyte *cbuffer = new GLubyte[32] {
      255,0,0,255,
      0,255,0,255,
      0,0,255,255,
      255,255,0,255,
      255,0,255,255,
      0,255,255,255,
      0,0,0,255,
      255,255,255,255
  };
  
  GLuint *ibuffer = new GLuint[24] {
      0,1,4,2,
      0,2,6,3,
      0,3,5,1,
      1,4,7,5,
      5,7,6,3,
      2,6,7,4
  };
  
  //...
  
  glColor4f(1,1,1,1);
  
  glEnableClientState(GL_VERTEX_ARRAY | GL_COLOR_ARRAY);
  
  glColorPointer(4, GL_UNSIGNED_BYTE, 0, cbuffer);
  glVertexPointer(3, GL_FLOAT, 0, vbuffer);
  glDrawElements(GL_QUADS, 24, GL_UNSIGNED_INT, ibuffer);
  
  glDisableClientState(GL_VERTEX_ARRAY | GL_COLOR_ARRAY);
  </code></pre>
  
  <p>The desired cube isn't drawn, whereas the coordinate axes, which are drawn with <code>glVertex3f</code>, always appear.</p>
  
  <p>When I remove the <code>GL_COLOR_ARRAY</code> from <code>glEnableClientState</code>, the cube is drawn completely white, as instructed.</p>
  
  <p>What am I doing wrong? Why isn't the glColorPointer-stuff working?</p>
  
  <hr>
  
  <p>System:</p>
  
  <ul>
  <li>Kubuntu 13.04, 64bit</li>
  <li>Intel HD Graphics 3000</li>
  <li>OpenGL 3.0 (Mesa 9.1.7)</li>
  </ul>