summaryrefslogtreecommitdiffstats
path: root/modules/openxr/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/openxr/util.h')
-rw-r--r--modules/openxr/util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/openxr/util.h b/modules/openxr/util.h
index d95bc3bb8e..7488b5cf8e 100644
--- a/modules/openxr/util.h
+++ b/modules/openxr/util.h
@@ -61,13 +61,13 @@
#define GDEXTENSION_INIT_XR_FUNC(name) \
do { \
name##_ptr = reinterpret_cast<PFN_##name>(get_openxr_api()->get_instance_proc_addr(#name)); \
- ERR_FAIL_COND(name##_ptr == nullptr); \
+ ERR_FAIL_NULL(name##_ptr); \
} while (0)
#define GDEXTENSION_INIT_XR_FUNC_V(name) \
do { \
name##_ptr = reinterpret_cast<PFN_##name>(get_openxr_api()->get_instance_proc_addr(#name)); \
- ERR_FAIL_COND_V(name##_ptr == nullptr, false); \
+ ERR_FAIL_NULL_V(name##_ptr, false); \
} while (0)
#define EXT_PROTO_XRRESULT_FUNC1(func_name, arg1_type, arg1) \