mirror of https://github.com/bjornbytes/lovr.git
initialize XrSystemProperties type
This commit is contained in:
parent
933e1bd387
commit
394759c1ab
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue