From 9f4d1f501e6f36f3669a584f2e41e91a69de2edc Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sun, 5 Aug 2012 21:06:45 -0700 Subject: [PATCH] fix glEnd rendererComponents bug --- src/library_gl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/library_gl.js b/src/library_gl.js index cb7bfb811..47bf28069 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -2041,7 +2041,7 @@ var LibraryGL = { }, glEnd: function() { - GL.immediate.prepareClientAttributes(GL.immediate.rendererComponents['V'], true); + GL.immediate.prepareClientAttributes(GL.immediate.rendererComponents[GL.immediate.VERTEX], true); GL.immediate.firstVertex = 0; GL.immediate.lastVertex = GL.immediate.vertexCounter / (GL.immediate.stride >> 2); GL.immediate.flush();