Skip to content

Commit

Permalink
Fix overlay not visible or rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaamo committed Nov 10, 2024
1 parent 43a6d4b commit f4cbadf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OpenVR Display Devices/OpenVR-Display-Devices.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ void RunLoop() {

if (overlayMainHandle && vr::VROverlay()) {
auto &io = ImGui::GetIO();
dashboardVisible = vr::VROverlay()->IsActiveDashboardOverlay(overlayMainHandle);
// https://github.com/hyblocker/OpenVR-SpaceCalibrator/commit/d3adf9840e94a58f4824e0e77c626d267dfa21b0
dashboardVisible = vr::VROverlay()->IsActiveDashboardOverlay(overlayMainHandle) || vr::VROverlay()->IsDashboardVisible();

vr::VREvent_t vrEvent;
while (vr::VROverlay()->PollNextOverlayEvent(overlayMainHandle, &vrEvent, sizeof(vrEvent))) {
Expand Down

0 comments on commit f4cbadf

Please sign in to comment.