Skip to content

Commit 1aba49d

Browse files
idrisshahdmarcos
authored andcommitted
WebXR: check for null render target (#15) (#17)
1 parent 0ed9266 commit 1aba49d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/renderers/WebGLRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2309,7 +2309,7 @@ class WebGLRenderer {
23092309

23102310
renderTargetProperties.__autoAllocateDepthBuffer = depthTexture === undefined;
23112311

2312-
if ( ! renderTargetProperties.__autoAllocateDepthBuffer && ! _currentRenderTarget.isWebGLMultiviewRenderTarget ) {
2312+
if ( ! renderTargetProperties.__autoAllocateDepthBuffer && ( ! _currentRenderTarget || ! _currentRenderTarget.isWebGLMultiviewRenderTarget ) ) {
23132313

23142314
// The multisample_render_to_texture extension doesn't work properly if there
23152315
// are midframe flushes and an external depth buffer. Disable use of the extension.

0 commit comments

Comments
 (0)