import { s, s3 as s2 } from "./chunk-EMJ4ZSM2.js"; import { a } from "./chunk-GZT4BVFP.js"; // node_modules/@arcgis/core/views/webgl/checkWebGLError.js var n = s.getLogger("esri/views/webgl"); function o(e, r) { switch (r) { case e.INVALID_ENUM: return "Invalid Enum. An unacceptable value has been specified for an enumerated argument."; case e.INVALID_VALUE: return "Invalid Value. A numeric argument is out of range."; case e.INVALID_OPERATION: return "Invalid Operation. The specified command is not allowed for the current state."; case e.INVALID_FRAMEBUFFER_OPERATION: return "Invalid Framebuffer operation. The currently bound framebuffer is not framebuffer complete when trying to render to or to read from it."; case e.OUT_OF_MEMORY: return "Out of memory. Not enough memory is left to execute the command."; case e.CONTEXT_LOST_WEBGL: return "WebGL context has been lost"; default: return "Unknown error"; } } var a2 = !!a("enable-feature:webgl-debug"); function u() { return a2; } function c() { return a2; } function s3(r) { if (u()) { const t = r.getError(); if (t) { const a3 = o(r, t), u2 = new Error().stack; n.error(new s2("webgl-error", "WebGL error occured", { message: a3, stack: u2 })); } } } export { u, c, s3 as s }; //# sourceMappingURL=chunk-QXZVBSBH.js.map