Fix casts of XR handles in OpenXRExtensionWrapperExtension

On 32-bit systems, XR handles are defined as uint64_t, so conversion from XR handles to uint64_t requires C-style casts.
This commit is contained in:
Gabor Koncz 2023-08-15 14:55:19 +02:00
parent c495eb5102
commit 61455ff87e

View file

@ -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);
}
@ -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);
}