Skip to content

Commit cb6be5b

Browse files
committed
fix: autoclear
1 parent d44b79d commit cb6be5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/EffectComposer.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,11 @@ export const EffectComposer = React.memo(
113113
useFrame(
114114
(_, delta) => {
115115
if (enabled) {
116+
const currentAutoClear = gl.autoClear
116117
gl.autoClear = autoClear
117118
if (stencilBuffer && !autoClear) gl.clearStencil()
118119
composer.render(delta)
120+
gl.autoClear = currentAutoClear
119121
}
120122
},
121123
enabled ? renderPriority : 0

0 commit comments

Comments
 (0)