@kitware/vtk.js 24.14.2 → 24.14.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.
@@ -65,7 +65,11 @@ function vtkOpenGLRenderer(publicAPI, model) {
65
65
  gl.scissor(ts.lowerLeftU, ts.lowerLeftV, ts.usize, ts.vsize);
66
66
  gl.viewport(ts.lowerLeftU, ts.lowerLeftV, ts.usize, ts.vsize);
67
67
  gl.colorMask(true, true, true, true);
68
- gl.clear(clearMask);
68
+
69
+ if (clearMask) {
70
+ gl.clear(clearMask);
71
+ }
72
+
69
73
  gl.enable(gl.DEPTH_TEST);
70
74
  }
71
75
  }; // Renders myself
@@ -147,7 +151,11 @@ function vtkOpenGLRenderer(publicAPI, model) {
147
151
  gl.enable(gl.SCISSOR_TEST);
148
152
  gl.scissor(ts.lowerLeftU, ts.lowerLeftV, ts.usize, ts.vsize);
149
153
  gl.viewport(ts.lowerLeftU, ts.lowerLeftV, ts.usize, ts.vsize);
150
- gl.clear(clearMask);
154
+
155
+ if (clearMask) {
156
+ gl.clear(clearMask);
157
+ }
158
+
151
159
  gl.enable(gl.DEPTH_TEST);
152
160
  /* eslint-enable no-bitwise */
153
161
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "24.14.2",
3
+ "version": "24.14.3",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",