Skip to content

Commit ac90b87

Browse files
authored
set translucent canvas off by default (playcanvas#2553)
1 parent 9c594e4 commit ac90b87

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/framework/application.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,8 @@ function Application(canvas, options) {
421421

422422
options.graphicsDeviceOptions.xrCompatible = true;
423423

424+
options.graphicsDeviceOptions.alpha = options.graphicsDeviceOptions.alpha || false;
425+
424426
this.graphicsDevice = new GraphicsDevice(canvas, options.graphicsDeviceOptions);
425427
this.stats = new ApplicationStats(this.graphicsDevice);
426428
this._soundManager = new SoundManager(options);

0 commit comments

Comments
 (0)