Browse Source

Merge pull request #3255 from TrevorDev/updateLocalDevToPreserveDrawingBuffer

set preserveDrawingBuffer to true in localDev
sebavan 7 years ago
parent
commit
a54713f4b4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      localDev/index.html

+ 1 - 1
localDev/index.html

@@ -65,7 +65,7 @@
 			.require(indexjs)
 			.load(function() {
 				if (BABYLON.Engine.isSupported()) {
-					engine = new BABYLON.Engine(canvas, true, { stencil: true, disableWebGL2Support: false });
+					engine = new BABYLON.Engine(canvas, true, { stencil: true, disableWebGL2Support: false, preserveDrawingBuffer: true });
 					BABYLONDEVTOOLS.Loader.debugShortcut(engine);
 
 					// call the scene creation from the js.