Skip to content

Commit 6ac3806

Browse files
committed
Default to single space if no text given to avoid WebGL texture errors.
1 parent 8e19673 commit 6ac3806

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • v3/src/gameobjects/text/static

v3/src/gameobjects/text/static/Text.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var Text = new Class({
3232
{
3333
if (x === undefined) { x = 0; }
3434
if (y === undefined) { y = 0; }
35-
if (text === undefined) { text = ''; }
35+
if (text === undefined) { text = ' '; }
3636

3737
GameObject.call(this, scene, 'Text');
3838

0 commit comments

Comments
 (0)