'use strict';

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

var _luma = require('luma.gl');

var _headless = require('../luma.gl/headless/headless');

var _headless2 = _interopRequireDefault(_headless);

var _globals = require('../luma.gl/utils/globals');

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

(0, _luma.setContextDefaults)({
  width: 1,
  height: 1,
  debug: true
  // throwOnFailure: false,
  // throwOnError: false
});

_globals.global.glContext = _globals.global.glContext || (0, _luma.createGLContext)() ||
// TODO - Seems to be an issue in luma.gl
_headless2.default && (0, _headless2.default)(100, 100, {});
// console.log('Context', global.glContext);

exports.default = _globals.global.glContext;
//# sourceMappingURL=setup-gl.js.map