import { glUploadImageResource } from './glUploadImageResource.mjs';

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.upload(source, glTexture, gl);
  }
};

export { glUploadVideoResource };
//# sourceMappingURL=glUploadVideoResource.mjs.map
