Skip to content

Commit 35e3bb2

Browse files
Spiri0Attila Schroeder
authored andcommitted
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 (mrdoob#30921)
Co-authored-by: Attila Schroeder <attila-schroeder.79@gmail.com>
1 parent 49ae2f5 commit 35e3bb2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)