Skip to content

Fix incorrect struct initialization in khr_locate_spaces sample code - #200

Merged
rpavlik merged 2 commits into
KhronosGroup:stagingfrom
utzcoz:fix-incorrect-struct-initialization
Jul 15, 2026
Merged

rpavlik merged 2 commits into
KhronosGroup:stagingfrom
utzcoz:fix-incorrect-struct-initialization

Conversation

@utzcoz

@utzcoz utzcoz commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

XrSpaceLocationsKHR was initialized with XR_TYPE_SPACES_LOCATE_INFO_KHR (the locate-info struct's type token) instead of
XR_TYPE_SPACE_LOCATIONS_KHR, so the sample as written is rejected by a conformant runtime. The core-spec version of the same sample in spaces.adoc already uses the correct token.

Also update the extension's last modified date.

@CLAassistant

CLAassistant commented Jul 10, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@rpavlik-bot

Copy link
Copy Markdown
Collaborator

An issue (number 2777) has been filed to correspond to this pull request in the internal Khronos GitLab (Khronos members only: KHR:openxr/openxr#2777 ), to facilitate working group processes.

This GitHub pull request will continue to be the main site of discussion.

@rpavlik-bot rpavlik-bot added the synced to gitlab A corresponding issue has been filed in the Khronos internal GitLab label Jul 14, 2026
@johnkearney

Copy link
Copy Markdown

Thanks for the fix. LGTM

@rpavlik

rpavlik commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Can you change this so it merges into staging? (And add a changelog fragment?)

@utzcoz

utzcoz commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

No problem, update it now.

@utzcoz
utzcoz changed the base branch from main to staging July 15, 2026 14:34
utzcoz added 2 commits July 15, 2026 22:44
XrSpaceLocationsKHR was initialized with XR_TYPE_SPACES_LOCATE_INFO_KHR
(the locate-info struct's type token) instead of
XR_TYPE_SPACE_LOCATIONS_KHR, so the sample as written is rejected by a
conformant runtime. The core-spec version of the same sample in
spaces.adoc already uses the correct token.

Also update the extension's last modified date.
@utzcoz
utzcoz force-pushed the fix-incorrect-struct-initialization branch from 014173f to 297f2d6 Compare July 15, 2026 14:45
@utzcoz

utzcoz commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@rpavlik Updated. PTAL.

@rpavlik

rpavlik commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Thanks!

@rpavlik
rpavlik merged commit b4090b4 into KhronosGroup:staging Jul 15, 2026
2 checks passed
@utzcoz
utzcoz deleted the fix-incorrect-struct-initialization branch July 18, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

synced to gitlab A corresponding issue has been filed in the Khronos internal GitLab

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants