|
|
@@ -928,7 +928,8 @@ jsmpeg.prototype.initWebGL = function() {
|
|
928
|
928
|
|
|
929
|
929
|
// attempt to get a webgl context
|
|
930
|
930
|
try {
|
|
931
|
|
- gl = this.gl = this.canvas.getContext('webgl') || this.canvas.getContext('experimental-webgl');
|
|
|
931
|
+ var options = { preserveDrawingBuffer: true };
|
|
|
932
|
+ gl = this.gl = this.canvas.getContext('webgl', options) || this.canvas.getContext('experimental-webgl', options);
|
|
932
|
933
|
} catch (e) {
|
|
933
|
934
|
return false;
|
|
934
|
935
|
}
|