Skip to content

Commit

Permalink
fixed bad import
Browse files Browse the repository at this point in the history
  • Loading branch information
heilhead committed Sep 20, 2016
1 parent b462239 commit b3d6214
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/deformers/twgl/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import twgl from 'twgl.js/dist/twgl';

import { getImageData } from '../../utils/image';
import { getBoundingBox } from '../../utils/points';
import { getWebGLContext } from '../../utils/webgl';
import Background from './Background';

import createDeformVert from './shaders/deform.vert';
Expand Down Expand Up @@ -41,8 +42,7 @@ export default class Deformer {
if (!canvas) {
throw new Error('canvas parameter is falsey');
}
// FIXME: this is from svmfilter_webgl, import it
this._gl = getWebGLContext(canvas); // eslint-disable-line
this._gl = getWebGLContext(canvas);
if (!this._gl) {
throw new Error('Could not get a webgl context; have you already tried getting a 2d context on this canvas?');
}
Expand Down

0 comments on commit b3d6214

Please sign in to comment.