WebGPURenderer: copyFramebufferToTexture()
is broken when called outside of render()
.
#29713
Labels
copyFramebufferToTexture()
is broken when called outside of render()
.
#29713
Description
In the old version, I use
renderer.copyFramebufferToTexture
to render something to texture. There are many generated textures from offscreen scenes with a sharedRenderTarget
. So I userenderer.copyFramebufferToTexture
many times before the rendering of main scene.After switching into WebGPU version,
renderer.copyFramebufferToTexture
is broken, the reason is that I invokecopyFramebufferToTexture
out of therender()
method. The code of this linethree.js/src/renderers/common/Renderer.js
Line 1286 in 48e6e2e
this._currentRenderContext
is valid only when the code between the start and end ofrender
. And it always turns outnull
in my use case.Reproduction steps
Code
Live example
Screenshots
No response
Version
r169
Device
No response
Browser
No response
OS
No response
The text was updated successfully, but these errors were encountered: