aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library_gl.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/library_gl.js b/src/library_gl.js
index f37fde78..5e8f4c84 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -2020,6 +2020,9 @@ var LibraryGL = {
attribute.offset = bytes;
bytes += size;
}
+#if ASSERTIONS
+ assert(count*bytes < GL.immediate.MAX_TEMP_BUFFER_SIZE);
+#endif
// copy out the data (we need to know the stride for that, and define attribute.pointer
for (var i = 0; i < attributes.length; i++) {
var attribute = attributes[i];