diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2019-06-04 19:30:07 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2019-06-04 19:30:07 +0300 |
commit | c9c1b90532df3d2333e1aaa13c16175b77b19600 (patch) | |
tree | ee2e2f7cd6685f7ee166d592bb6e6464f6addac4 /source/blender/windowmanager/intern/wm_xr.c | |
parent | 4192281e148a459aaf8355960930782928be7240 (diff) |
Cleanup: Correct local variable name
Diffstat (limited to 'source/blender/windowmanager/intern/wm_xr.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_xr.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/source/blender/windowmanager/intern/wm_xr.c b/source/blender/windowmanager/intern/wm_xr.c index 271afdb1d95..22a1dd737cd 100644 --- a/source/blender/windowmanager/intern/wm_xr.c +++ b/source/blender/windowmanager/intern/wm_xr.c @@ -178,24 +178,24 @@ static bool openxr_instance_log_print(wmXRContext *context) wmXRContext *wm_xr_context_create(void) { - wmXRContext *wm_context = MEM_callocN(sizeof(*wm_context), "wmXRContext"); + wmXRContext *xr_context = MEM_callocN(sizeof(*xr_context), "wmXRContext"); - BLI_assert(wm_context->oxr.instance == XR_NULL_HANDLE); - openxr_instance_setup(wm_context); - openxr_instance_log_print(wm_context); + BLI_assert(xr_context->oxr.instance == XR_NULL_HANDLE); + openxr_instance_setup(xr_context); + openxr_instance_log_print(xr_context); - return wm_context; + return xr_context; } -void wm_xr_context_destroy(wmXRContext *wm_context) +void wm_xr_context_destroy(wmXRContext *xr_context) { - xrDestroySession(wm_context->oxr.session); - xrDestroyInstance(wm_context->oxr.instance); + xrDestroySession(xr_context->oxr.session); + xrDestroyInstance(xr_context->oxr.instance); - MEM_SAFE_FREE(wm_context->oxr.extensions); - MEM_SAFE_FREE(wm_context->oxr.layers); + MEM_SAFE_FREE(xr_context->oxr.extensions); + MEM_SAFE_FREE(xr_context->oxr.layers); - MEM_SAFE_FREE(wm_context); + MEM_SAFE_FREE(xr_context); } bool wm_xr_session_is_running(const wmXRContext *xr_context) |