@luma.gl/webgl 9.1.0-alpha.1 → 9.1.0-alpha.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luma.gl/webgl",
3
- "version": "9.1.0-alpha.1",
3
+ "version": "9.1.0-alpha.2",
4
4
  "description": "WebGL2 adapter for the luma.gl core API",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -43,9 +43,9 @@
43
43
  "@luma.gl/core": "^9.0.0-beta"
44
44
  },
45
45
  "dependencies": {
46
- "@luma.gl/constants": "9.1.0-alpha.1",
46
+ "@luma.gl/constants": "9.1.0-alpha.2",
47
47
  "@math.gl/types": "^4.0.0",
48
48
  "@probe.gl/env": "^4.0.8"
49
49
  },
50
- "gitHead": "bc5c11c87f1e4db857e701688ca1410d7f51fd0f"
50
+ "gitHead": "cb258afdefd2d5712d2decca35c746dd9d77a03e"
51
51
  }
@@ -56,7 +56,7 @@ export class WEBGLTransformFeedback extends TransformFeedback {
56
56
 
57
57
  end(): void {
58
58
  this.gl.endTransformFeedback();
59
- if (!this.bindOnUse) {
59
+ if (this.bindOnUse) {
60
60
  this._unbindBuffers();
61
61
  }
62
62
  this.gl.bindTransformFeedback(GL.TRANSFORM_FEEDBACK, null);
@@ -97,6 +97,9 @@ export class WEBGLVertexArray extends VertexArray {
97
97
  // Attaches ARRAY_BUFFER with specified buffer format to location
98
98
  this.device.gl.vertexAttribPointer(location, size, type, normalized, stride, offset);
99
99
  }
100
+ // Clear binding - keeping it may cause [.WebGL-0x12804417100]
101
+ // GL_INVALID_OPERATION: A transform feedback buffer that would be written to is also bound to a non-transform-feedback target
102
+ this.device.gl.bindBuffer(GL.ARRAY_BUFFER, null);
100
103
 
101
104
  // Mark as non-constant
102
105
  this.device.gl.enableVertexAttribArray(location);