Skip to content

Commit 1c2c479

Browse files
committed
Include Layer3D if feature enabled
1 parent f8d7e82 commit 1c2c479

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/phaser.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ var Phaser = {
5050

5151
};
5252

53-
// Merge in the optional plugins
53+
// Merge in the optional plugins and WebGL only features
54+
55+
if (typeof FEATURE_3D)
56+
{
57+
Phaser.Layer3D = require('./layer3d');
58+
}
5459

5560
if (typeof FEATURE_SOUND)
5661
{

0 commit comments

Comments
 (0)