|
@@ -224,7 +224,7 @@ class PMREMGenerator {
|
|
|
|
|
|
if ( texture.mapping === CubeReflectionMapping || texture.mapping === CubeRefractionMapping ) {
|
|
|
|
|
|
- this._setSize( texture.image.length === 0 ? 16 : texture.image[ 0 ].width ?? texture.image[ 0 ].image.width );
|
|
|
+ this._setSize( texture.image.length === 0 ? 16 : ( texture.image[ 0 ].width || texture.image[ 0 ].image.width ) );
|
|
|
|
|
|
} else { // Equirectangular
|
|
|
|