diff --git a/jsmpg.js b/jsmpg.js index e27ea0eb..e5d6f73a 100755 --- a/jsmpg.js +++ b/jsmpg.js @@ -18,7 +18,7 @@ var jsmpeg = window.jsmpeg = function( url, opts ) { this.wantsToPlay = this.autoplay; this.loop = !!opts.loop; this.seekable = !!opts.seekable; - this.preserveDrawingBuffer = !!opts.preserveDrawingBuffer; + this.preserveDrawingBuffer = !!opts.preserveDrawingBuffer; this.externalLoadCallback = opts.onload || null; this.externalDecodeCallback = opts.ondecodeframe || null; this.externalFinishedCallback = opts.onfinished || null; @@ -929,7 +929,7 @@ jsmpeg.prototype.initWebGL = function() { // attempt to get a webgl context try { - var options = { preserveDrawingBuffer: this.preserveDrawingBuffer }; + var options = { preserveDrawingBuffer: this.preserveDrawingBuffer }; gl = this.gl = this.canvas.getContext('webgl', options) || this.canvas.getContext('experimental-webgl', options); } catch (e) { return false;