@luma.gl/webgl 9.1.3 → 9.1.4

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/index.cjs CHANGED
@@ -3003,11 +3003,14 @@ var WEBGLRenderPass = class extends import_core15.RenderPass {
3003
3003
  }
3004
3004
  this.device.pushState();
3005
3005
  this.setParameters({ viewport, ...this.props.parameters });
3006
- if (this.props.framebuffer) {
3007
- const drawBuffers = this.props.framebuffer.colorAttachments.map((_, i) => 36064 + i);
3008
- this.device.gl.drawBuffers(drawBuffers);
3009
- } else {
3010
- this.device.gl.drawBuffers([1029]);
3006
+ const webglFramebuffer = this.props.framebuffer;
3007
+ if (webglFramebuffer == null ? void 0 : webglFramebuffer.handle) {
3008
+ if (this.props.framebuffer) {
3009
+ const drawBuffers = this.props.framebuffer.colorAttachments.map((_, i) => 36064 + i);
3010
+ this.device.gl.drawBuffers(drawBuffers);
3011
+ } else {
3012
+ this.device.gl.drawBuffers([1029]);
3013
+ }
3011
3014
  }
3012
3015
  this.clear();
3013
3016
  }