@luma.gl/core 9.1.2 → 9.1.3

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/core",
3
- "version": "9.1.2",
3
+ "version": "9.1.3",
4
4
  "description": "The luma.gl core Device API",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -46,5 +46,5 @@
46
46
  "@probe.gl/stats": "^4.0.8",
47
47
  "@types/offscreencanvas": "^2019.6.4"
48
48
  },
49
- "gitHead": "d6198ca8e2adf62d6bdd08ac2556ccc39069a973"
49
+ "gitHead": "3aecf478bad9719e6de3192c7d07b35aa8544efe"
50
50
  }
@@ -293,7 +293,7 @@ export abstract class CanvasContext {
293
293
  const gl = this.device.gl;
294
294
  if (!gl) {
295
295
  // use default device pixel ratio
296
- throw new Error('canvas size');
296
+ return this.getPixelSize();
297
297
  }
298
298
  return [gl.drawingBufferWidth, gl.drawingBufferHeight];
299
299
  }
@@ -72,6 +72,6 @@ export abstract class VertexArray extends Resource<VertexArrayProps> {
72
72
 
73
73
  /** @deprecated Set constant attributes (WebGL only) */
74
74
  setConstantWebGL(location: number, value: TypedArray | null): void {
75
- throw new Error('constant attributes not supported');
75
+ this.device.reportError(new Error('constant attributes not supported'));
76
76
  }
77
77
  }