Fix WebGL check in SpriteStage.js

This was breaking us on IE10.

Fixes #1620
This commit is contained in:
Matt Lott 2014-10-01 11:58:25 -07:00
parent 5dd7c3ffa1
commit 511378465f

View file

@ -528,7 +528,7 @@ var p = SpriteStage.prototype = new createjs.Stage();
* into itself). * into itself).
**/ **/
p.draw = function(ctx, ignoreCache) { p.draw = function(ctx, ignoreCache) {
if (ctx === this._webGLContext || ctx instanceof WebGLRenderingContext) { if (typeof WebGLRenderingContext !== 'undefined' && (ctx === this._webGLContext || ctx instanceof WebGLRenderingContext)) {
this._drawWebGLKids(this.children, ctx); this._drawWebGLKids(this.children, ctx);
// If there is a remaining texture, draw it: // If there is a remaining texture, draw it: