diff --git a/src/core/graphics/webgl/WebGLGraphicsData.js b/src/core/graphics/webgl/WebGLGraphicsData.js index 8b342d5..b422b8e 100644 --- a/src/core/graphics/webgl/WebGLGraphicsData.js +++ b/src/core/graphics/webgl/WebGLGraphicsData.js @@ -99,13 +99,14 @@ }; WebGLGraphicsData.prototype.destroy = function () { - this.gl = null; this.color = null; this.points = null; this.indices = null; this.gl.deleteBuffer(this.buffer); this.gl.deleteBuffer(this.indexBuffer); + + this.gl = null; this.buffer = null; this.indexBuffer = null;