@react-three/postprocessing 2.14.2 → 2.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.
package/dist/index.cjs CHANGED
@@ -102,10 +102,12 @@ const EffectComposer = React.memo(React.forwardRef(({ children, camera: _camera,
102
102
  React.useEffect(() => composer === null || composer === void 0 ? void 0 : composer.setSize(size.width, size.height), [composer, size]);
103
103
  fiber.useFrame((_, delta) => {
104
104
  if (enabled) {
105
+ const currentAutoClear = gl.autoClear;
105
106
  gl.autoClear = autoClear;
106
107
  if (stencilBuffer && !autoClear)
107
108
  gl.clearStencil();
108
109
  composer.render(delta);
110
+ gl.autoClear = currentAutoClear;
109
111
  }
110
112
  }, enabled ? renderPriority : 0);
111
113
  const group = React.useRef(null);
package/dist/index.js CHANGED
@@ -82,10 +82,12 @@ const EffectComposer = React.memo(forwardRef(({ children, camera: _camera, scene
82
82
  useEffect(() => composer === null || composer === void 0 ? void 0 : composer.setSize(size.width, size.height), [composer, size]);
83
83
  useFrame((_, delta) => {
84
84
  if (enabled) {
85
+ const currentAutoClear = gl.autoClear;
85
86
  gl.autoClear = autoClear;
86
87
  if (stencilBuffer && !autoClear)
87
88
  gl.clearStencil();
88
89
  composer.render(delta);
90
+ gl.autoClear = currentAutoClear;
89
91
  }
90
92
  }, enabled ? renderPriority : 0);
91
93
  const group = useRef(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-three/postprocessing",
3
- "version": "2.14.2",
3
+ "version": "2.14.3",
4
4
  "description": "postprocessing wrapper for React and @react-three/fiber",
5
5
  "keywords": [
6
6
  "postprocessing",