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

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

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