O'Reilly logo
  • Musharraf Azeem thinks this is interesting:



Cover of OpenGL Programming Guide: The Official Guide to Learning OpenGL, Version 4.3, Eighth Edition


Concerns: 1) What if an attribute j does have a corresponding call glVertexAttributePointer(j, ...) ? Probably j takes on default values, eg. if j is vec3 , Vi.j = (0,0,1) for all i

2) If there is not enough data in a buffer object for a vertex attribute array (eg. array of vertices' color values), what happens? Crash or when exceeded bounds of buffer object, simply use default values?