diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2019-06-04 19:27:44 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2019-06-04 19:27:44 +0300 |
commit | 4192281e148a459aaf8355960930782928be7240 (patch) | |
tree | 242365d8f08ee551fd77e951eebf59ef84840f7a /source/blender/windowmanager/intern/wm_xr.c | |
parent | 329deadc9e24ec82fb33809df18b7ef3c03168ae (diff) |
Fix layer and extension count not stored as intended
Diffstat (limited to 'source/blender/windowmanager/intern/wm_xr.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_xr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_xr.c b/source/blender/windowmanager/intern/wm_xr.c index 5a6bb818fb3..271afdb1d95 100644 --- a/source/blender/windowmanager/intern/wm_xr.c +++ b/source/blender/windowmanager/intern/wm_xr.c @@ -82,6 +82,7 @@ static void openxr_gather_extensions_ex(wmXRContext *context, const char *layer_ context->oxr.extensions = MEM_calloc_arrayN( extension_count, sizeof(*context->oxr.extensions), "xrExtensionProperties"); + context->oxr.extension_count = extension_count; for (uint i = 0; i < extension_count; i++) { context->oxr.extensions[i].type = XR_TYPE_EXTENSION_PROPERTIES; } @@ -119,6 +120,7 @@ static void openxr_gather_api_layers(wmXRContext *context) context->oxr.layers = MEM_calloc_arrayN( layer_count, sizeof(*context->oxr.layers), "XrApiLayerProperties"); + context->oxr.layer_count = layer_count; for (uint i = 0; i < layer_count; i++) { context->oxr.layers[i].type = XR_TYPE_API_LAYER_PROPERTIES; } |