Disable vertex attrib array after replay

This commit is contained in:
Éric Lemoine
2014-11-21 17:48:58 +01:00
parent b3369cd516
commit c0bbb6c4fa

View File

@@ -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);
};