aboutsummaryrefslogtreecommitdiff
path: root/src/library_gl.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library_gl.js')
-rw-r--r--src/library_gl.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library_gl.js b/src/library_gl.js
index f21bbf54..70221201 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -4967,7 +4967,7 @@ var LibraryGL = {
glVertexAttribDivisor__sig: 'vii',
glVertexAttribDivisor: function(index, divisor) {
-#if ASSERTIONS
+#if GL_ASSERTIONS
assert(GL.instancedArraysExt, 'Must have ANGLE_instanced_arrays extension to use WebGL instancing');
#endif
GL.instancedArraysExt.vertexAttribDivisorANGLE(index, divisor);
@@ -4975,7 +4975,7 @@ var LibraryGL = {
glDrawArraysInstanced_sig: 'viiii',
glDrawArraysInstanced: function(mode, first, count, primcount) {
-#if ASSERTIONS
+#if GL_ASSERTIONS
assert(GL.instancedArraysExt, 'Must have ANGLE_instanced_arrays extension to use WebGL instancing');
#endif
GL.instancedArraysExt.drawArraysInstancedANGLE(mode, first, count, primcount);
@@ -4983,7 +4983,7 @@ var LibraryGL = {
glDrawElementsInstanced_sig: 'viiiii',
glDrawElementsInstanced: function(mode, count, type, indices, primcount) {
-#if ASSERTIONS
+#if GL_ASSERTIONS
assert(GL.instancedArraysExt, 'Must have ANGLE_instanced_arrays extension to use WebGL instancing');
#endif
GL.instancedArraysExt.drawElementsInstancedANGLE(mode, count, type, indices, primcount);