title: glDrawArrays works in vm, crashes on phone
body: <p>I am drawing a line in opengl es from the Android NDK. I have been developing on the VM's and just recently tried my application on a phone. The application runs fine on the vm's. A line is drawn. However, on a motorola droid, the application just crashes, and on a HTC incredible it just shows a black screen. I have verified that the number being passed to the function are correct. The application haults on the glDrawArray(GL_LINES, 0, 2) call. The whole function looks like this:</p>
  
  <pre><code>void drawLine(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2, GLfloat * color)
  {
      GLfloat vVertices[] =
      {x1, y1,
      x2, y2};
  
      glEnableClientState(GL_VERTEX_ARRAY);
      glEnableClientState(GL_COLOR_ARRAY);
      glColor4f(color[0],color[1],color[2],color[3]);
      glVertexPointer(2, GL_FLOAT, 0, vVertices);
  
      glDrawArrays(GL_LINES, 0, 2);
      __android_log_write(ANDROID_LOG_ERROR,"to mama","You drew arrays");
  
      glDisableClientState(GL_COLOR_ARRAY);
      glDisableClientState(GL_VERTEX_ARRAY);
  }
  </code></pre>
  
  <p>and the call to it looks like this:</p>
  
  <pre><code>drawLine(0.0f,0.0f,1.0f,0.0f,colorx);/*x is green*/
  </code></pre>
  
  <p>I can try drawelements next, but there is not reason draw arrays should not work (as far as i know).</p>