Skip to content

Commit

Permalink
Revert "WebXR: check for null render target (supermedium#15) (superme…
Browse files Browse the repository at this point in the history
…dium#17)"

This reverts commit 5b5b032.
  • Loading branch information
vincentfretin committed Jan 31, 2025
1 parent caa86bb commit 48cbeeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderers/WebGLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2416,7 +2416,7 @@ class WebGLRenderer {

renderTargetProperties.__autoAllocateDepthBuffer = depthTexture === undefined;

if ( ! renderTargetProperties.__autoAllocateDepthBuffer && ( ! _currentRenderTarget || ! _currentRenderTarget.isWebGLMultiviewRenderTarget ) ) {
if ( ! renderTargetProperties.__autoAllocateDepthBuffer && ! _currentRenderTarget.isWebGLMultiviewRenderTarget ) {

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

0 comments on commit 48cbeeb

Please sign in to comment.