@luma.gl/webgl 9.0.8 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luma.gl/webgl",
3
- "version": "9.0.8",
3
+ "version": "9.0.9",
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.8",
46
+ "@luma.gl/constants": "9.0.9",
47
47
  "@probe.gl/env": "^4.0.2"
48
48
  },
49
- "gitHead": "40aa2ca078c5ff2d52445dce6a9efa982fba67a2"
49
+ "gitHead": "1715a33d52c6d23227cd3f62e163a40ea9acec9e"
50
50
  }
@@ -150,6 +150,7 @@ export function setDeviceParameters(device: Device, parameters: Parameters) {
150
150
  }
151
151
 
152
152
  if (parameters.depthBias !== undefined) {
153
+ gl.enable(GL.POLYGON_OFFSET_FILL);
153
154
  gl.polygonOffset(parameters.depthBias, parameters.depthBiasSlopeScale || 0);
154
155
  }
155
156
 
@@ -38,9 +38,6 @@ export class WEBGLRenderPass extends RenderPass {
38
38
 
39
39
  end(): void {
40
40
  popContextState(this.device.gl);
41
- if (this.props.framebuffer) {
42
- setGLParameters(this.device.gl, {framebuffer: null});
43
- }
44
41
  // should add commands to CommandEncoder.
45
42
  }
46
43
 
@@ -57,7 +54,7 @@ export class WEBGLRenderPass extends RenderPass {
57
54
  * Maps RenderPass parameters to GL parameters
58
55
  */
59
56
  setParameters(parameters: RenderPassParameters = {}): void {
60
- const glParameters: GLParameters = {};
57
+ const glParameters: GLParameters = {...this.glParameters};
61
58
 
62
59
  // Framebuffers are specified using parameters in WebGL
63
60
  if (this.props.framebuffer) {