Skip to content

Commit

Permalink
Fix setting WebGL context attrs to false when respective option is un…
Browse files Browse the repository at this point in the history
…set.
  • Loading branch information
tjgq committed Feb 23, 2018
1 parent 9190ca8 commit 2b1a5b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stages/WebGl.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ function initWebGlContext(canvas, opts) {
var options = {
alpha: true,
premultipliedAlpha: true,
antialias: opts && opts.antialias,
preserveDrawingBuffer: opts && opts.preserveDrawingBuffer
antialias: !!(opts && opts.antialias),
preserveDrawingBuffer: !!(opts && opts.preserveDrawingBuffer)
};

if (debug && typeof WebGLDebugUtils !== 'undefined') {
Expand Down

0 comments on commit 2b1a5b6

Please sign in to comment.