diff --git a/src/pixi/Pixi.js b/src/pixi/Pixi.js index 4e259a6..267b784 100644 --- a/src/pixi/Pixi.js +++ b/src/pixi/Pixi.js @@ -105,11 +105,20 @@ { PIXI.Float32Array = Float32Array; PIXI.Uint16Array = Uint16Array; + + // Uint32Array and ArrayBuffer only used by WebGL renderer + // We can suppose that if WebGL is supported then typed arrays are supported too + // see typed arrays support: http://caniuse.com/#search=TypedArrays + // see WebGL support: http://caniuse.com/#search=WebGL + PIXI.Uint32Array = Uint32Array; + PIXI.ArrayBuffer = ArrayBuffer; } else { PIXI.Float32Array = Array; PIXI.Uint16Array = Array; + + } // interaction frequency diff --git a/src/pixi/Pixi.js b/src/pixi/Pixi.js index 4e259a6..267b784 100644 --- a/src/pixi/Pixi.js +++ b/src/pixi/Pixi.js @@ -105,11 +105,20 @@ { PIXI.Float32Array = Float32Array; PIXI.Uint16Array = Uint16Array; + + // Uint32Array and ArrayBuffer only used by WebGL renderer + // We can suppose that if WebGL is supported then typed arrays are supported too + // see typed arrays support: http://caniuse.com/#search=TypedArrays + // see WebGL support: http://caniuse.com/#search=WebGL + PIXI.Uint32Array = Uint32Array; + PIXI.ArrayBuffer = ArrayBuffer; } else { PIXI.Float32Array = Array; PIXI.Uint16Array = Array; + + } // interaction frequency diff --git a/src/pixi/extras/TilingSprite.js b/src/pixi/extras/TilingSprite.js index 839ba94..2b758e2 100644 --- a/src/pixi/extras/TilingSprite.js +++ b/src/pixi/extras/TilingSprite.js @@ -218,8 +218,8 @@ var resolution = renderSession.resolution; context.setTransform(transform.a * resolution, - transform.c * resolution, transform.b * resolution, + transform.c * resolution, transform.d * resolution, transform.tx * resolution, transform.ty * resolution);