'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var glUploadImageResource = require('./glUploadImageResource.js');

const glUploadVideoResource = {
  id: "video",
  upload(source, glTexture, gl) {
    if (!source.isValid) {
      gl.texImage2D(
        glTexture.target,
        0,
        glTexture.internalFormat,
        1,
        1,
        0,
        glTexture.format,
        glTexture.type,
        null
      );
      return;
    }
    glUploadImageResource.glUploadImageResource.upload(source, glTexture, gl);
  }
};

exports.glUploadVideoResource = glUploadVideoResource;
//# sourceMappingURL=glUploadVideoResource.js.map
