super-three 0.160.0 → 0.160.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-three",
3
- "version": "0.160.0",
3
+ "version": "0.160.1",
4
4
  "description": "JavaScript 3D library",
5
5
  "type": "module",
6
6
  "main": "./build/three.js",
@@ -2235,7 +2235,7 @@ class WebGLRenderer {
2235
2235
 
2236
2236
  renderTargetProperties.__autoAllocateDepthBuffer = depthTexture === undefined;
2237
2237
 
2238
- if ( ! renderTargetProperties.__autoAllocateDepthBuffer && ! _currentRenderTarget.isWebGLMultiviewRenderTarget ) {
2238
+ if ( ! renderTargetProperties.__autoAllocateDepthBuffer && ( ! _currentRenderTarget || ! _currentRenderTarget.isWebGLMultiviewRenderTarget ) ) {
2239
2239
 
2240
2240
  // The multisample_render_to_texture extension doesn't work properly if there
2241
2241
  // are midframe flushes and an external depth buffer. Disable use of the extension.