File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /* global Phaser:true */
2+ /**
3+ * @author Richard Davey <rich@photonstorm.com>
4+ * @copyright 2014 Photon Storm Ltd.
5+ * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License }
6+ */
7+
8+ // Pixi expects these globals to exist
9+
10+ if ( PIXI . blendModes === undefined )
11+ {
12+ PIXI . blendModes = Phaser . blendModes ;
13+ }
14+
15+ if ( PIXI . scaleModes === undefined )
16+ {
17+ PIXI . scaleModes = Phaser . scaleModes ;
18+ }
19+
20+ if ( PIXI . Texture . emptyTexture === undefined )
21+ {
22+ PIXI . Texture . emptyTexture = new PIXI . Texture ( new PIXI . BaseTexture ( ) ) ;
23+ }
24+
25+ if ( PIXI . DisplayObject . _tempMatrix === undefined )
26+ {
27+ PIXI . DisplayObject . _tempMatrix = new PIXI . Matrix ( ) ;
28+ }
29+
30+ if ( PIXI . RenderTexture . tempMatrix === undefined )
31+ {
32+ PIXI . RenderTexture . tempMatrix = new PIXI . Matrix ( ) ;
33+ }
You can’t perform that action at this time.
0 commit comments