'use strict';

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

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

const unknownContext = {};
let context = unknownContext;
function getTestContext() {
  if (context === unknownContext || context?.isContextLost()) {
    const canvas = settings.settings.ADAPTER.createCanvas();
    context = canvas.getContext("webgl2", {});
  }
  return context;
}

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