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 XR Frame alloc #1386

Merged
merged 16 commits into from
Jun 26, 2024
Merged

Fix XR Frame alloc #1386

merged 16 commits into from
Jun 26, 2024

Conversation

CedricGuillemet
Copy link
Contributor

@CedricGuillemet CedricGuillemet commented May 31, 2024

Context here : #1383

fixes #1383

  • Replace a weak pointer const xr::System::Session::Frame* m_frame{};with a smart pointer.
  • Rendering moved from Frame dtor to a specific, explicit method

PR tested ok : https://forum.babylonjs.com/t/babylonreactnative-throws-exception-when-adding-anchor/50716/16?u=cedric

Dependencies/xr/Source/ARCore/XR.cpp Show resolved Hide resolved
Plugins/NativeXr/Source/NativeXr.cpp Outdated Show resolved Hide resolved
Plugins/NativeXr/Source/NativeXr.cpp Outdated Show resolved Hide resolved
Plugins/NativeXr/Source/NativeXr.cpp Outdated Show resolved Hide resolved
Plugins/NativeXr/Source/NativeXr.cpp Outdated Show resolved Hide resolved
Plugins/NativeXr/Source/NativeXr.cpp Outdated Show resolved Hide resolved
Plugins/NativeXr/Source/NativeXr.cpp Outdated Show resolved Hide resolved
Plugins/NativeXr/Source/NativeXr.cpp Outdated Show resolved Hide resolved
@CedricGuillemet CedricGuillemet marked this pull request as ready for review June 20, 2024 09:52
@CedricGuillemet CedricGuillemet merged commit 6bb7702 into master Jun 26, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

XR throws exception when adding anchor
2 participants