We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5603241 commit d29d97fCopy full SHA for d29d97f
1 file changed
src/renderers/WebGLRenderTarget.js
@@ -39,9 +39,14 @@ THREE.WebGLRenderTarget.prototype = {
39
40
setSize: function ( width, height ) {
41
42
- this.width = width;
43
- this.height = height;
+ if ( this.width !== width || this.height !== height ) {
44
+ this.width = width;
45
+ this.height = height;
46
+
47
+ this.dispose();
48
49
+ }
50
},
51
52
clone: function () {
0 commit comments