We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e2c9b0 commit 8683d96Copy full SHA for 8683d96
src/core/RenderTarget.js
@@ -294,7 +294,16 @@ class RenderTarget extends EventDispatcher {
294
this.textures[ i ].image.width = width;
295
this.textures[ i ].image.height = height;
296
this.textures[ i ].image.depth = depth;
297
- this.textures[ i ].isArrayTexture = this.textures[ i ].image.depth > 1;
+
298
+ if ( this.textures[ i ].isData3DTexture !== true ) { // Fix for #31693
299
300
+ // TODO: Reconsider setting isArrayTexture flag here and in the ctor of Texture.
301
+ // Maybe a method `isArrayTexture()` or just a getter could replace a flag since
302
+ // both are evaluated on each call?
303
304
+ this.textures[ i ].isArrayTexture = this.textures[ i ].image.depth > 1;
305
306
+ }
307
308
}
309
0 commit comments