initialize XrSystemProperties type

This commit is contained in:
Christoph Haag 2021-01-22 15:43:01 +01:00
parent 933e1bd387
commit 394759c1ab
1 changed files with 3 additions and 1 deletions

View File

@ -542,7 +542,9 @@ static void openxr_destroy(void) {
}
static bool openxr_getName(char* name, size_t length) {
XrSystemProperties properties;
XrSystemProperties properties = {
.type = XR_TYPE_SYSTEM_PROPERTIES
};
XR(xrGetSystemProperties(state.instance, state.system, &properties));
strncpy(name, properties.systemName, length - 1);
name[length - 1] = '\0';