We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ed9266 commit 1aba49dCopy full SHA for 1aba49d
1 file changed
src/renderers/WebGLRenderer.js
@@ -2309,7 +2309,7 @@ class WebGLRenderer {
2309
2310
renderTargetProperties.__autoAllocateDepthBuffer = depthTexture === undefined;
2311
2312
- if ( ! renderTargetProperties.__autoAllocateDepthBuffer && ! _currentRenderTarget.isWebGLMultiviewRenderTarget ) {
+ if ( ! renderTargetProperties.__autoAllocateDepthBuffer && ( ! _currentRenderTarget || ! _currentRenderTarget.isWebGLMultiviewRenderTarget ) ) {
2313
2314
// The multisample_render_to_texture extension doesn't work properly if there
2315
// are midframe flushes and an external depth buffer. Disable use of the extension.
0 commit comments