Skip to content

Commit

Permalink
Merge pull request #1322 from digisomni/fix/update-openvr
Browse files Browse the repository at this point in the history
Update OpenVR to 1.16.8.
  • Loading branch information
digisomni committed Sep 5, 2021
2 parents c36afe7 + bfa1085 commit 18cc4cd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmake/ports/openvr/CONTROL
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Source: openvr
Version: 1.0.16
Version: 1.16.8
Description: an API and runtime that allows access to VR hardware from multiple vendors without requiring that applications have specific knowledge of the hardware they are targeting.
4 changes: 2 additions & 2 deletions cmake/ports/openvr/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ValveSoftware/openvr
REF v1.11.11
SHA512 25bddb0e82eea091fe5101d0d3de1de7bb81b4504adc0c8d8e687d2502c0167bc5a11e68bc343d7563fb4db7c917e9d0e2ea99bc1d8016d479874b0c6bd7f121
REF v1.16.8
SHA512 bc65fd2fc2aab870c7fee98f5211b7d88cd30511ce5b23fa2ac05454969b6ee56b42e422e44a16a833b317bb1328e0ed986c926e3d78abddf5fd5788ff74de91
HEAD_REF master
)

Expand Down
10 changes: 9 additions & 1 deletion plugins/openvr/src/OpenVrHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,14 @@ void showMinSpecWarning() {
if (!vrOverlay) {
qFatal("Unable to initialize SteamVR overlay manager");
}
auto vrChaperone = vr::VRChaperone();
if (!vrChaperone) {
qFatal("Unable to initialize SteamVR chaperone");
}
auto vrCompositor = vr::VRCompositor();
if (!vrCompositor) {
qFatal("Unable to initialize SteamVR compositor");
}

vr::VROverlayHandle_t minSpecFailedOverlay = 0;
if (vr::VROverlayError_None != vrOverlay->CreateOverlay(FAILED_MIN_SPEC_OVERLAY_NAME, FAILED_MIN_SPEC_OVERLAY_FRIENDLY_NAME, &minSpecFailedOverlay)) {
Expand Down Expand Up @@ -443,7 +451,7 @@ void showMinSpecWarning() {
});
#endif

vrSystem->ResetSeatedZeroPose();
vrChaperone->ResetZeroPose(vrCompositor->GetTrackingSpace());
QString imagePath = PathUtils::resourcesPath() + "/images/steam-min-spec-failed.png";
vrOverlay->SetOverlayFromFile(minSpecFailedOverlay, imagePath.toLocal8Bit().toStdString().c_str());
vrOverlay->SetOverlayWidthInMeters(minSpecFailedOverlay, 1.4f);
Expand Down

0 comments on commit 18cc4cd

Please sign in to comment.