@woosh/meep-engine 2.85.1 → 2.85.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/build/meep.cjs CHANGED
@@ -89387,6 +89387,7 @@ class GraphicsEngine {
89387
89387
  return intersectObject;
89388
89388
  })();
89389
89389
  }
89390
+
89390
89391
  /**
89391
89392
  *
89392
89393
  * @returns {MaterialManager}
@@ -89470,7 +89471,7 @@ class GraphicsEngine {
89470
89471
 
89471
89472
  start() {
89472
89473
  const canvas = document.createElement("canvas");
89473
- const context = canvas.getContext("webgl2", {antialias: false});
89474
+ const context = canvas.getContext("webgl2", { antialias: false });
89474
89475
 
89475
89476
  const rendererParameters = {
89476
89477
  antialias: true,
@@ -89667,6 +89668,10 @@ class GraphicsEngine {
89667
89668
  // TODO designate opaque output buffer
89668
89669
  const frameBuffer = buffers.getById(StandardFrameBuffers.ColorAndDepth);
89669
89670
 
89671
+ if (frameBuffer === undefined) {
89672
+ throw new Error(`No color-depth frame buffer`);
89673
+ }
89674
+
89670
89675
  renderTextureToScreenQuad(frameBuffer.renderTarget.texture, renderer);
89671
89676
 
89672
89677
  this.on.postOpaquePass.send0();
@@ -103365,7 +103370,7 @@ class Engine {
103365
103370
  try {
103366
103371
  graphicsEngine.start();
103367
103372
  } catch (e) {
103368
- logger.info("Failed to start GraphicEngine: ", e);
103373
+ logger.error(`Failed to start GraphicEngine: ${e}`);
103369
103374
  }
103370
103375
 
103371
103376
  } else {