@luma.gl/webgl 9.0.7 → 9.0.9

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
@@ -1602,6 +1602,7 @@ function setDeviceParameters(device, parameters) {
1602
1602
  }
1603
1603
  }
1604
1604
  if (parameters.depthBias !== void 0) {
1605
+ gl.enable(32823);
1605
1606
  gl.polygonOffset(parameters.depthBias, parameters.depthBiasSlopeScale || 0);
1606
1607
  }
1607
1608
  if (parameters.provokingVertex) {
@@ -3127,9 +3128,6 @@ var WEBGLRenderPass = class extends import_core15.RenderPass {
3127
3128
  }
3128
3129
  end() {
3129
3130
  popContextState(this.device.gl);
3130
- if (this.props.framebuffer) {
3131
- setGLParameters(this.device.gl, { framebuffer: null });
3132
- }
3133
3131
  }
3134
3132
  pushDebugGroup(groupLabel) {
3135
3133
  }
@@ -3144,7 +3142,7 @@ var WEBGLRenderPass = class extends import_core15.RenderPass {
3144
3142
  * Maps RenderPass parameters to GL parameters
3145
3143
  */
3146
3144
  setParameters(parameters = {}) {
3147
- const glParameters = {};
3145
+ const glParameters = { ...this.glParameters };
3148
3146
  if (this.props.framebuffer) {
3149
3147
  glParameters.framebuffer = this.props.framebuffer;
3150
3148
  }