|
@@ -5336,6 +5336,9 @@ var BABYLON;
|
|
this._renderingCanvas = canvas;
|
|
this._renderingCanvas = canvas;
|
|
options = options || {};
|
|
options = options || {};
|
|
options.antialias = antialias;
|
|
options.antialias = antialias;
|
|
|
|
+ if (options.preserveDrawingBuffer === undefined) {
|
|
|
|
+ options.preserveDrawingBuffer = false;
|
|
|
|
+ }
|
|
// GL
|
|
// GL
|
|
try {
|
|
try {
|
|
this._gl = canvas.getContext("webgl", options) || canvas.getContext("experimental-webgl", options);
|
|
this._gl = canvas.getContext("webgl", options) || canvas.getContext("experimental-webgl", options);
|
|
@@ -5538,7 +5541,7 @@ var BABYLON;
|
|
});
|
|
});
|
|
Object.defineProperty(Engine, "Version", {
|
|
Object.defineProperty(Engine, "Version", {
|
|
get: function () {
|
|
get: function () {
|
|
- return "2.1.0";
|
|
|
|
|
|
+ return "2.2.0-alpha";
|
|
},
|
|
},
|
|
enumerable: true,
|
|
enumerable: true,
|
|
configurable: true
|
|
configurable: true
|