@luma.gl/webgl 9.0.9 → 9.0.10

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.0.9",
3
+ "version": "9.0.10",
4
4
  "description": "WebGL2 adapter for the luma.gl core API",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -43,8 +43,8 @@
43
43
  "@luma.gl/core": "^9.0.0"
44
44
  },
45
45
  "dependencies": {
46
- "@luma.gl/constants": "9.0.9",
46
+ "@luma.gl/constants": "9.0.10",
47
47
  "@probe.gl/env": "^4.0.2"
48
48
  },
49
- "gitHead": "1715a33d52c6d23227cd3f62e163a40ea9acec9e"
49
+ "gitHead": "aa5e354fd9502a84e43c9e312ad33d9c155fed01"
50
50
  }
@@ -169,6 +169,7 @@ export class WEBGLRenderPipeline extends RenderPipeline {
169
169
  parameters?: RenderPipelineParameters;
170
170
  topology?: PrimitiveTopology;
171
171
  vertexArray: VertexArray;
172
+ isInstanced?: boolean;
172
173
  vertexCount?: number;
173
174
  indexCount?: number;
174
175
  instanceCount?: number;
@@ -186,6 +187,7 @@ export class WEBGLRenderPipeline extends RenderPipeline {
186
187
  vertexCount,
187
188
  // indexCount,
188
189
  instanceCount,
190
+ isInstanced = false,
189
191
  firstVertex = 0,
190
192
  // firstIndex,
191
193
  // firstInstance,
@@ -196,7 +198,7 @@ export class WEBGLRenderPipeline extends RenderPipeline {
196
198
  const glDrawMode = getGLDrawMode(topology);
197
199
  const isIndexed: boolean = Boolean(vertexArray.indexBuffer);
198
200
  const glIndexType = (vertexArray.indexBuffer as WEBGLBuffer)?.glIndexType;
199
- const isInstanced: boolean = Number(instanceCount) > 0;
201
+ // Note that we sometimes get called with 0 instances
200
202
 
201
203
  // If we are using async linking, we need to wait until linking completes
202
204
  if (this.linkStatus !== 'success') {
@@ -328,7 +330,7 @@ export class WEBGLRenderPipeline extends RenderPipeline {
328
330
  throw new Error(`Error during compilation of shader ${this.vs.id}`);
329
331
  }
330
332
  if (this.fs?.compilationStatus === 'error') {
331
- this.vs.debugShader();
333
+ this.fs.debugShader();
332
334
  throw new Error(`Error during compilation of shader ${this.fs.id}`);
333
335
  }
334
336
  throw new Error(`Error during ${status}: ${this.device.gl.getProgramInfoLog(this.handle)}`);