Skip to content

Commit

Permalink
Merge pull request #80656 from konczg/fix_extension_wrapper_extension…
Browse files Browse the repository at this point in the history
…_casts

Fix casts of XR handles in OpenXRExtensionWrapperExtension
  • Loading branch information
akien-mga committed Aug 16, 2023
2 parents 9d9043a + 61455ff commit 3d1e135
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ void OpenXRExtensionWrapperExtension::on_before_instance_created() {
}

void OpenXRExtensionWrapperExtension::on_instance_created(const XrInstance p_instance) {
uint64_t instance = reinterpret_cast<uint64_t>(p_instance);
uint64_t instance = (uint64_t)p_instance;
GDVIRTUAL_CALL(_on_instance_created, instance);
}

Expand All @@ -135,7 +135,7 @@ void OpenXRExtensionWrapperExtension::on_instance_destroyed() {
}

void OpenXRExtensionWrapperExtension::on_session_created(const XrSession p_session) {
uint64_t session = reinterpret_cast<uint64_t>(p_session);
uint64_t session = (uint64_t)p_session;
GDVIRTUAL_CALL(_on_session_created, session);
}

Expand Down

0 comments on commit 3d1e135

Please sign in to comment.