@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/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/dist.dev.js +2 -1
- package/dist/dist.min.js +1 -1
- package/dist/index.cjs +2 -1
- 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luma.gl/webgl",
|
|
3
|
-
"version": "9.1.0-alpha.
|
|
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.
|
|
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": "
|
|
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 (
|
|
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);
|