Use system-wide Wine, DXVK & D9VK for Steam Play/Proton (Windows) games directly from Linux Steam client
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.1 KiB

5 years ago
  1. From 1fd28b735d8abcc3fde9a4f5493407b5c0fcb91e Mon Sep 17 00:00:00 2001
  2. From: Christoph Haag <christoph.haag@collabora.com>
  3. Date: Wed, 8 Aug 2018 01:06:29 +0200
  4. Subject: [PATCH] also add pragma pack around VRControllerState_t
  5. See https://github.com/ValveSoftware/SteamVR-for-Linux/issues/35
  6. ---
  7. headers/openvr_capi.h | 8 ++++++++
  8. 1 file changed, 8 insertions(+)
  9. diff --git a/headers/openvr_capi.h b/headers/openvr_capi.h
  10. index 66da364..97906eb 100644
  11. --- a/headers/openvr_capi.h
  12. +++ b/headers/openvr_capi.h
  13. @@ -1206,6 +1206,11 @@ typedef struct VRControllerAxis_t
  14. float y;
  15. } VRControllerAxis_t;
  16. +#if defined(__linux__) || defined(__APPLE__)
  17. +// This structure was originally defined mis-packed on Linux, preserved for
  18. +// compatibility.
  19. +#pragma pack( push, 4 )
  20. +#endif
  21. typedef struct VRControllerState_t
  22. {
  23. uint32_t unPacketNum;
  24. @@ -1213,6 +1218,9 @@ typedef struct VRControllerState_t
  25. uint64_t ulButtonTouched;
  26. struct VRControllerAxis_t rAxis[5]; //struct vr::VRControllerAxis_t[5]
  27. } VRControllerState_t;
  28. +#if defined(__linux__) || defined(__APPLE__)
  29. +#pragma pack( pop )
  30. +#endif
  31. typedef struct Compositor_OverlaySettings
  32. {
  33. --
  34. 2.18.0