openvr
openvr copied to clipboard
OpenVR SDK
suggest parentheses around assignment used as truth value [-Wparentheses]
MinGW uses the GCC version of Variadic Macros, which is currently the else case. Add a first case for MinGW. See https://gcc.gnu.org/onlinedocs/gcc/Variadic-Macros.html
Note that this pull request is a separate branch (to indicate it's a separate issue) but builds on top of #508 to avoid a merge conflict.
Visual C++ has an extension that auto-magically converts a FARPROC to a void*. On MinGW we get an error like: In function ‘void* SharedLib_GetFunction(SharedLibHandle, const char*)’: openvr/src/sharedlibtools_public.cpp:25:23: error: invalid conversion...
MinGW has Windows.h as windows.h (and similar for other files). Because Windows is case-insensitive, MSFT's inconsistency[0][1] with cases doesn't matter. But for MinGW on Linux - we care. Using the...
It's possible that `VR_LoadHmdSystemInternal() `will return before it sets `g_pVRModule` global pointer to a valid value. Without this change `NULL` will be passed to `SharedLib_Unload` which on Linux will result...
As per GetApplicationKeyByIndex, ByProcessId should also be using a StringBuilder for the key buffer.
* add .gitignore file - exclude artifacts and common IDE files * add .h file as PUBLIC_HEADER
Added texture cleanup
* Unquoted ${QT_FLAGS} in CMakeLists.txt files to prevent "-fPIC;-fPIC;-fPIC" compiler flag. * Added definition for _countof to compat.h.