diff --git a/src/pixi/renderers/webgl/WebGLRenderer.js b/src/pixi/renderers/webgl/WebGLRenderer.js index 67e1710..6440d5e 100644 --- a/src/pixi/renderers/webgl/WebGLRenderer.js +++ b/src/pixi/renderers/webgl/WebGLRenderer.js @@ -78,14 +78,14 @@ // deal with losing context.. this.contextLost = this.handleContextLost.bind(this); this.contextRestoredLost = this.handleContextRestored.bind(this); - + this.view.addEventListener('webglcontextlost', this.contextLost, false); this.view.addEventListener('webglcontextrestored', this.contextRestoredLost, false); this.options = { alpha: this.transparent, antialias:!!antialias, // SPEED UP?? - premultipliedAlpha:!!transparent, + premultipliedAlpha:!!transparent && transparent !== 'notMultiplied', stencil:true, preserveDrawingBuffer: preserveDrawingBuffer }; @@ -214,7 +214,7 @@ stage.interactionManager.setTarget(this); } } - + var gl = this.gl; // -- Does this need to be set every frame? -- // @@ -285,7 +285,7 @@ * @method renderDIsplayObject * @param displayObject {DisplayObject} The DisplayObject to render * @param projection {Point} The projection - * @param buffer {Array} a standard WebGL buffer + * @param buffer {Array} a standard WebGL buffer */ PIXI.WebGLRenderer.prototype.renderDisplayObject = function(displayObject, projection, buffer) { @@ -480,7 +480,7 @@ texture._dirty[gl.id] = false; } - + }; /** @@ -553,7 +553,7 @@ } /** - * Whether the context was lost + * Whether the context was lost * @property contextLost * @type Boolean */ @@ -570,7 +570,7 @@ { // deal with losing context.. - + // remove listeners this.view.removeEventListener('webglcontextlost', this.contextLost); this.view.removeEventListener('webglcontextrestored', this.contextRestoredLost); @@ -591,7 +591,7 @@ this.spriteBatch = null; this.maskManager = null; this.filterManager = null; - + this.gl = null; // this.renderSession = null;