Skip to content

Commit 6fab01f

Browse files
authored
RenderWebGL.js -- small fix
1 parent 74c271a commit 6fab01f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RenderWebGL.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ class RenderWebGL extends EventEmitter {
481481
this._backgroundColor4f[0] = red;
482482
this._backgroundColor4f[1] = green;
483483
this._backgroundColor4f[2] = blue;
484-
this._backgroundColor4f[3] = alpha;
484+
this._backgroundColor4f[3] = alpha ?? 1;
485485

486486
this._backgroundColor3b[0] = red * 255;
487487
this._backgroundColor3b[1] = green * 255;

0 commit comments

Comments
 (0)