Browse Source

check for GL #29

pull/44/head
Mikael Finstad 6 years ago
parent
commit
6a91e40ef5
  1. 4
      glTransitions.js

4
glTransitions.js

@ -8,6 +8,10 @@ const createTexture = require('gl-texture2d');
module.exports = ({ width, height, channels }) => { module.exports = ({ width, height, channels }) => {
const gl = GL(width, height); const gl = GL(width, height);
if (!gl) {
throw new Error('gl returned null, this probably means that some dependencies are not installed. See README.');
}
function runTransitionOnFrame({ fromFrame, toFrame, progress, transitionName, transitionParams = {} }) { function runTransitionOnFrame({ fromFrame, toFrame, progress, transitionName, transitionParams = {} }) {
function convertFrame(buf) { function convertFrame(buf) {
// @see https://github.com/stackgl/gl-texture2d/issues/16 // @see https://github.com/stackgl/gl-texture2d/issues/16

Loading…
Cancel
Save