Skip to content

Commit 3c5bf3e

Browse files
authored
Merge pull request phaserjs#4077 from samme/fix/webgl-game-context-null
Fix null game.context after WebGLRenderer init
2 parents fa95e0a + ced7c82 commit 3c5bf3e

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/boot/CreateRenderer.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,6 @@ var CreateRenderer = function (game)
9696
if (config.renderType === CONST.WEBGL)
9797
{
9898
game.renderer = new WebGLRenderer(game);
99-
100-
// The WebGL Renderer sets this value during its init, not on construction
101-
game.context = null;
10299
}
103100
else
104101
{
@@ -115,9 +112,6 @@ var CreateRenderer = function (game)
115112
config.renderType = CONST.WEBGL;
116113

117114
game.renderer = new WebGLRenderer(game);
118-
119-
// The WebGL Renderer sets this value during its init, not on construction
120-
game.context = null;
121115
}
122116

123117
if (!typeof WEBGL_RENDERER && typeof CANVAS_RENDERER)

0 commit comments

Comments
 (0)