Gregg Tavares discovered that the index validation code is caching buffer size information too aggressively. If vertexAttribPointer is called with a given buffer which is not large enough to cover a given draw call, but is subsequently resized via bufferData, the draw call is failing rather than succeeding.
Created attachment 59605 [details] Patch From the ChangeLog: Do not cache the buffer size during vertexAttribPointer, only the attributes used to compute the number of required elements. Compute the number of valid elements each time based on the latched buffer. Tested in Safari and Chromium on Mac OS X in both debug and release mode to ensure no performance regressions.
LGTM
Comment on attachment 59605 [details] Patch ok.
Committed r62018: <http://trac.webkit.org/changeset/62018>
Note that the patch landed was slightly different than the one reviewed due to merging with the fix for https://bugs.webkit.org/show_bug.cgi?id=41108 .