@luma.gl/webgl 9.0.11 → 9.0.14
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/LICENSE +34 -0
- package/dist/adapter/resources/webgl-texture.d.ts +1 -1
- package/dist/adapter/resources/webgl-transform-feedback.js +1 -1
- package/dist/adapter/resources/webgl-vertex-array.d.ts.map +1 -1
- package/dist/adapter/resources/webgl-vertex-array.js +3 -0
- package/dist/adapter/webgl-device.js +3 -3
- package/dist/context/debug/spector.js +2 -2
- package/dist/dist.dev.js +7 -6
- package/dist/dist.min.js +2 -2
- package/dist/index.cjs +7 -6
- package/dist/index.cjs.map +2 -2
- package/package.json +3 -3
- package/src/adapter/resources/webgl-transform-feedback.ts +1 -1
- package/src/adapter/resources/webgl-vertex-array.ts +3 -0
- package/src/adapter/webgl-device.ts +4 -4
- package/src/context/debug/spector.ts +2 -2
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("
|
|
2820
|
+
spector: import_core12.log.get("spector") || import_core12.log.get("spectorjs")
|
|
2821
2821
|
};
|
|
2822
|
-
var SPECTOR_CDN_URL = "https://
|
|
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;
|
|
@@ -4464,6 +4464,7 @@ var WEBGLVertexArray = class extends import_core21.VertexArray {
|
|
|
4464
4464
|
} else {
|
|
4465
4465
|
this.device.gl.vertexAttribPointer(location, size, type, normalized, stride, offset);
|
|
4466
4466
|
}
|
|
4467
|
+
this.device.gl.bindBuffer(34962, null);
|
|
4467
4468
|
this.device.gl.enableVertexAttribArray(location);
|
|
4468
4469
|
this.device.gl.vertexAttribDivisor(location, divisor || 0);
|
|
4469
4470
|
this.attributes[location] = buffer;
|
|
@@ -4642,7 +4643,7 @@ var WEBGLTransformFeedback = class extends import_core22.TransformFeedback {
|
|
|
4642
4643
|
}
|
|
4643
4644
|
end() {
|
|
4644
4645
|
this.gl.endTransformFeedback();
|
|
4645
|
-
if (
|
|
4646
|
+
if (this.bindOnUse) {
|
|
4646
4647
|
this._unbindBuffers();
|
|
4647
4648
|
}
|
|
4648
4649
|
this.gl.bindTransformFeedback(36386, null);
|
|
@@ -5153,6 +5154,9 @@ var _WebGLDevice = class extends import_core27.Device {
|
|
|
5153
5154
|
this.gl = gl;
|
|
5154
5155
|
this.gl.device = this;
|
|
5155
5156
|
this.gl._version = 2;
|
|
5157
|
+
if (props.spector) {
|
|
5158
|
+
this.spectorJS = initializeSpectorJS({ ...this.props, canvas: this.handle.canvas });
|
|
5159
|
+
}
|
|
5156
5160
|
this.info = getDeviceInfo(this.gl, this._extensions);
|
|
5157
5161
|
this.limits = new WebGLDeviceLimits(this.gl);
|
|
5158
5162
|
this.features = new WebGLDeviceFeatures(this.gl, this._extensions, this.props.disabledFeatures);
|
|
@@ -5172,9 +5176,6 @@ var _WebGLDevice = class extends import_core27.Device {
|
|
|
5172
5176
|
import_core27.log.level = Math.max(import_core27.log.level, 1);
|
|
5173
5177
|
import_core27.log.warn("WebGL debug mode activated. Performance reduced.")();
|
|
5174
5178
|
}
|
|
5175
|
-
if (props.spector) {
|
|
5176
|
-
this.spectorJS = initializeSpectorJS({ ...this.props, canvas: this.handle.canvas });
|
|
5177
|
-
}
|
|
5178
5179
|
}
|
|
5179
5180
|
/**
|
|
5180
5181
|
* Destroys the context
|