@luma.gl/webgl 9.0.11 → 9.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -2817,9 +2817,9 @@ var WebGLCanvasContext = class extends import_core11.CanvasContext {
2817
2817
  // dist/context/debug/spector.js
2818
2818
  var import_core12 = require("@luma.gl/core");
2819
2819
  var DEFAULT_SPECTOR_PROPS = {
2820
- spector: import_core12.log.get("spector") || import_core12.log.get("inspect")
2820
+ spector: import_core12.log.get("spector") || import_core12.log.get("spectorjs")
2821
2821
  };
2822
- var SPECTOR_CDN_URL = "https://spectorcdn.babylonjs.com/spector.bundle.js";
2822
+ var SPECTOR_CDN_URL = "https://cdn.jsdelivr.net/npm/spectorjs@0.9.30/dist/spector.bundle.js";
2823
2823
  var LOG_LEVEL = 1;
2824
2824
  var spector = null;
2825
2825
  var initialized = false;
@@ -5153,6 +5153,9 @@ var _WebGLDevice = class extends import_core27.Device {
5153
5153
  this.gl = gl;
5154
5154
  this.gl.device = this;
5155
5155
  this.gl._version = 2;
5156
+ if (props.spector) {
5157
+ this.spectorJS = initializeSpectorJS({ ...this.props, canvas: this.handle.canvas });
5158
+ }
5156
5159
  this.info = getDeviceInfo(this.gl, this._extensions);
5157
5160
  this.limits = new WebGLDeviceLimits(this.gl);
5158
5161
  this.features = new WebGLDeviceFeatures(this.gl, this._extensions, this.props.disabledFeatures);
@@ -5172,9 +5175,6 @@ var _WebGLDevice = class extends import_core27.Device {
5172
5175
  import_core27.log.level = Math.max(import_core27.log.level, 1);
5173
5176
  import_core27.log.warn("WebGL debug mode activated. Performance reduced.")();
5174
5177
  }
5175
- if (props.spector) {
5176
- this.spectorJS = initializeSpectorJS({ ...this.props, canvas: this.handle.canvas });
5177
- }
5178
5178
  }
5179
5179
  /**
5180
5180
  * Destroys the context