tests: Fix unreachable code warnings (#14993)

This commit is contained in:
RaceTheMaSe 2026-02-07 18:42:59 +01:00 committed by GitHub
parent 863912aa03
commit 7c7ffb9115
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 21 additions and 22 deletions

View file

@ -55,7 +55,7 @@ static bool SDL_OPENXR_INTERNAL_ValidationLayerAvailable(void)
/* On Android/Quest, the xrGetInstanceProcAddr obtained through runtime negotiation
* crashes when used for pre-instance global functions. Skip validation layer check. */
return false;
#endif
#else
Uint32 apiLayerCount;
if (XR_FAILED(xrEnumerateApiLayerProperties(0, &apiLayerCount, NULL))) {
@ -84,6 +84,7 @@ static bool SDL_OPENXR_INTERNAL_ValidationLayerAvailable(void)
SDL_stack_free(apiLayerProperties);
return found;
#endif
}
XrResult SDL_OPENXR_INTERNAL_GPUInitOpenXR(