title: Can I delete a float array when I have used glBufferData?
body: <p>I'm studying OpenGL API and I would like to ask you if I can delete a float array of vertices after passing it to OpenGL.</p>
  
  <p>Example code:</p>
  
  <pre><code>GLuint VBO;
  float *vertices = new float[2];
  vertices[0] = 0.0f;
  vertices[1] = 1.0f;
  
  glGenBuffers(1, &amp;VBO);
  glBindBuffer(GL_ARRAY_BUFFER, VBO);
  glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW);
  
  delete[] vertices;
  </code></pre>
  
  <p>Could you tell me consequences about doing it?</p>