diff --git a/src/pixi/renderers/webgl/WebGLRenderer.js b/src/pixi/renderers/webgl/WebGLRenderer.js index ecc1180..693b074 100644 --- a/src/pixi/renderers/webgl/WebGLRenderer.js +++ b/src/pixi/renderers/webgl/WebGLRenderer.js @@ -527,7 +527,7 @@ // need to set the context... this.shaderManager.setContext(gl); this.spriteBatch.setContext(gl); - this.primitiveBatch.setContext(gl); + // this.primitiveBatch.setContext(gl); this.maskManager.setContext(gl); this.filterManager.setContext(gl); @@ -579,7 +579,7 @@ // time to create the render managers! each one focuses on managine a state in webGL this.shaderManager.destroy(); this.spriteBatch.destroy(); - this.primitiveBatch.destroy(); + // this.primitiveBatch.destroy(); this.maskManager.destroy(); this.filterManager.destroy(); diff --git a/src/pixi/renderers/webgl/WebGLRenderer.js b/src/pixi/renderers/webgl/WebGLRenderer.js index ecc1180..693b074 100644 --- a/src/pixi/renderers/webgl/WebGLRenderer.js +++ b/src/pixi/renderers/webgl/WebGLRenderer.js @@ -527,7 +527,7 @@ // need to set the context... this.shaderManager.setContext(gl); this.spriteBatch.setContext(gl); - this.primitiveBatch.setContext(gl); + // this.primitiveBatch.setContext(gl); this.maskManager.setContext(gl); this.filterManager.setContext(gl); @@ -579,7 +579,7 @@ // time to create the render managers! each one focuses on managine a state in webGL this.shaderManager.destroy(); this.spriteBatch.destroy(); - this.primitiveBatch.destroy(); + // this.primitiveBatch.destroy(); this.maskManager.destroy(); this.filterManager.destroy(); diff --git a/src/pixi/renderers/webgl/shaders/StripShader.js b/src/pixi/renderers/webgl/shaders/StripShader.js index 101bc0a..11f13ad 100644 --- a/src/pixi/renderers/webgl/shaders/StripShader.js +++ b/src/pixi/renderers/webgl/shaders/StripShader.js @@ -86,3 +86,17 @@ this.program = program; }; + +/** +* Destroys the shader +* @method destroy +* +*/ +PIXI.StripShader.prototype.destroy = function() +{ + this.gl.deleteProgram( this.program ); + this.uniforms = null; + this.gl = null; + + this.attribute = null; +};