Skip to content

Commit 941c013

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 <[email protected]>
1 parent d6c7891 commit 941c013

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)