mirror of
https://github.com/wassname/phaser.git
synced 2026-07-07 00:06:37 +08:00
ShaderToy convertor up and working, lots of shaders being turned into Pixi filters :)
This commit is contained in:
@@ -58,7 +58,14 @@ Phaser.BitmapData = function (game, width, height) {
|
||||
/**
|
||||
* @property {UInt8Clamped} pixels - A reference to the context imageData buffer.
|
||||
*/
|
||||
this.pixels = this.imageData.data.buffer;
|
||||
if (this.imageData.data.buffer)
|
||||
{
|
||||
this.pixels = this.imageData.data.buffer;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.pixels = this.imageData.data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @property {PIXI.BaseTexture} baseTexture - The PIXI.BaseTexture.
|
||||
|
||||
Reference in New Issue
Block a user