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 749ae4b commit 1d075ceCopy full SHA for 1d075ce
src/renderers/WebGLRenderer.js
@@ -2306,7 +2306,7 @@ class WebGLRenderer {
2306
2307
renderTargetProperties.__autoAllocateDepthBuffer = depthTexture === undefined;
2308
2309
- if ( ! renderTargetProperties.__autoAllocateDepthBuffer && ! _currentRenderTarget.isWebGLMultiviewRenderTarget ) {
+ if ( ! renderTargetProperties.__autoAllocateDepthBuffer && ( ! _currentRenderTarget || ! _currentRenderTarget.isWebGLMultiviewRenderTarget ) ) {
2310
2311
// The multisample_render_to_texture extension doesn't work properly if there
2312
// are midframe flushes and an external depth buffer. Disable use of the extension.
0 commit comments