Browse Source

set preserveDrawingBuffer to true

Trevor Baron 7 năm trước cách đây
mục cha
commit
273f7c9a98
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      localDev/index.html

+ 1 - 1
localDev/index.html

@@ -65,7 +65,7 @@
 			.require(indexjs)
 			.require(indexjs)
 			.load(function() {
 			.load(function() {
 				if (BABYLON.Engine.isSupported()) {
 				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);
 					BABYLONDEVTOOLS.Loader.debugShortcut(engine);
 
 
 					// call the scene creation from the js.
 					// call the scene creation from the js.