From c0bbb6c4fae826ae68d8f2b281883376c22ea4b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Fri, 21 Nov 2014 17:48:58 +0100 Subject: [PATCH] Disable vertex attrib array after replay --- src/ol/render/webgl/webglreplay.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ol/render/webgl/webglreplay.js b/src/ol/render/webgl/webglreplay.js index 766f734d55..a2263934ca 100644 --- a/src/ol/render/webgl/webglreplay.js +++ b/src/ol/render/webgl/webglreplay.js @@ -638,6 +638,13 @@ ol.render.webgl.ImageReplay.prototype.replay = function(context, gl.drawElements(goog.webgl.TRIANGLES, numItems, elementType, offsetInBytes); start = end; } + + // disable the vertex attrib arrays + gl.disableVertexAttribArray(locations.a_position); + gl.disableVertexAttribArray(locations.a_offsets); + gl.disableVertexAttribArray(locations.a_texCoord); + gl.disableVertexAttribArray(locations.a_opacity); + gl.disableVertexAttribArray(locations.a_rotateWithView); };