Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(RenderTexture): disable XR during RenderTexture render #1793

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

mattrossman
Copy link
Contributor

Why

Resolves #1789

What

Save and restore value of gl.xr.enabled before/after the RenderTexture render, set to false during.

I used an untyped let variable to follow the pattern used for oldAutoClear, though it may be safer to give these a boolean type annotation or just use const inside the frame loop.

Checklist

  • Ready to be merged

Copy link

vercel bot commented Jan 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
drei ✅ Ready (Inspect) Visit Preview Jan 23, 2024 2:54pm

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit b5c9353:

Sandbox Source
withered-pond-5qfx26 Configuration
Ground reflections and video textures Configuration
arc-x-pmndrs-colors Configuration

@CodyJasonBennett CodyJasonBennett changed the title fix: disable XR during RenderTexture render fix(RenderTexture): disable XR during RenderTexture render Jan 25, 2024
@CodyJasonBennett CodyJasonBennett merged commit 007a7b8 into master Jan 25, 2024
4 checks passed
Copy link

🎉 This PR is included in version 9.96.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

<RenderTexture> uses wrong camera in WebXR session
2 participants