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.

17 lines
586 B

5 years ago
  1. diff --git a/samples/hellovr_opengl/hellovr_opengl_main.cpp b/samples/hellovr_opengl/hellovr_opengl_main.cpp
  2. index 64d1d47..dac2e9f 100644
  3. --- a/samples/hellovr_opengl/hellovr_opengl_main.cpp
  4. +++ b/samples/hellovr_opengl/hellovr_opengl_main.cpp
  5. @@ -1276,6 +1276,12 @@ bool CMainApplication::SetupStereoRenderTargets()
  6. return true;
  7. }
  8. +//http://www.g-truc.net/post-0708.html
  9. +template <typename T, std::size_t N>
  10. +constexpr std::size_t _countof(T const (&)[N]) noexcept
  11. +{
  12. +return N;
  13. +}
  14. //-----------------------------------------------------------------------------
  15. // Purpose: