Skip to content

Commit 8a812ee

Browse files
Spiri0Attila Schroeder
andauthored
Fix a small bug in RenderTarget.js. I corrected the usage of depthTexture assignment in the RenderTarget constructor. Now using the setter function again like in r174 and before to ensure renderTarget is properly linked to the texture (#30921)
Co-authored-by: Attila Schroeder <[email protected]>
1 parent 8da96d0 commit 8a812ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/RenderTarget.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ class RenderTarget extends EventDispatcher {
177177
*/
178178
this.resolveStencilBuffer = options.resolveStencilBuffer;
179179

180-
this._depthTexture = options.depthTexture;
180+
this._depthTexture = null;
181+
this.depthTexture = options.depthTexture;
181182

182183
/**
183184
* The number of MSAA samples.

0 commit comments

Comments
 (0)