Skip to content

Commit

Permalink
dont append svmfilter_webgl canvas to dom
Browse files Browse the repository at this point in the history
  • Loading branch information
yofreke committed Sep 20, 2016
1 parent b3efceb commit 5a99353
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/svmfilter/svmfilter_webgl.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,7 @@ export default class WebglFilter {
this.canvas.setAttribute('height', ((this.patchHeight - this.filterHeight + 1) * this.numPatches) + 'px');
this.canvas.setAttribute('id', 'renderCanvas');
this.canvas.setAttribute('style', 'display:none;');
// FIXME: dont litter the DOM with render canvases
document.body.appendChild(this.canvas);
// document.body.appendChild(this.canvas);
const gl = setupWebGL(this.canvas, {
premultipliedAlpha: false,
preserveDrawingBuffer: true,
Expand Down

0 comments on commit 5a99353

Please sign in to comment.