Skip to content

Commit d432a64

Browse files
committed
CanvasTexture has been added to the Textures namespace so it can be created without needing to import it. The correct way to create a CanvasTexture is via the Texture Manager, but you can now do it directly if required. Fix phaserjs#4651
1 parent 1fd4764 commit d432a64

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
* The Animation Manager will now emit a console warning if you try and play an animation on a Sprite that doesn't exist.
6868
* The Animation component will no longer start an animation on a Sprite if the animation doesn't exist. Previously it would throw an error saying "Unable to read the property getFirstTick of null".
6969
* `InputManager.onPointerLockChange` is a new method that handles pointer lock change events and dispatches the lock event.
70+
* `CanvasTexture` has been added to the `Textures` namespace so it can be created without needing to import it. The correct way to create a `CanvasTexture` is via the Texture Manager, but you can now do it directly if required. Fix #4651 (thanks @Jugacu)
7071

7172
### Bug Fixes
7273

src/textures/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ var FilterMode = require('./const');
3131

3232
var Textures = {
3333

34+
CanvasTexture: require('./CanvasTexture'),
3435
Events: require('./events'),
3536
FilterMode: FilterMode,
3637
Frame: require('./Frame'),

0 commit comments

Comments
 (0)