X Tutup
Skip to content

OpenXR: Don't create a visibility mask mesh without data#114181

Merged
akien-mga merged 1 commit intogodotengine:masterfrom
BastiaanOlij:fix_openxr_visibility_nomask
Dec 21, 2025
Merged

OpenXR: Don't create a visibility mask mesh without data#114181
akien-mga merged 1 commit intogodotengine:masterfrom
BastiaanOlij:fix_openxr_visibility_nomask

Conversation

@BastiaanOlij
Copy link
Contributor

The OpenXR visibility mask extension will attempt to retrieve a visibility mask from the runtime if this extension is supported.

It is however possible that no such mask is available in which case no data will be returned. We still attempted to create a mesh which lead to console errors.

This can be reproduced with SteamVR using a headset like the Quest 3 using SteamLink.

This PR changes the logic so a mesh is only created once data is received.

Fixes #111376

@BastiaanOlij BastiaanOlij added this to the 4.6 milestone Dec 19, 2025
@BastiaanOlij BastiaanOlij self-assigned this Dec 19, 2025
@BastiaanOlij BastiaanOlij requested a review from a team as a code owner December 19, 2025 05:07
@BastiaanOlij BastiaanOlij added the cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release label Dec 19, 2025
Copy link
Contributor

@dsnopek dsnopek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I haven't tested, but the code looks good to me :-)

@akien-mga akien-mga merged commit ec06048 into godotengine:master Dec 21, 2025
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 4.5.2.

@akien-mga akien-mga removed the cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release label Jan 8, 2026
@BastiaanOlij BastiaanOlij deleted the fix_openxr_visibility_nomask branch January 16, 2026 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Running in XR mode produces console errors about an invalid mesh

5 participants

X Tutup