From 2c83c225ed2e984408641fa48bfd329315064f61 Mon Sep 17 00:00:00 2001 From: omigamedev Date: Thu, 1 Aug 2019 22:44:11 +0200 Subject: [PATCH] draw vr ui when vr thread starts on win --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 88e7269..c4cd223 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -599,6 +599,10 @@ bool win32_vr_start() vive->on_button = std::bind(&App::vr_digital, App::I, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4); + App::I->render_task([] { + App::I->vr_draw_ui(); + }); + const float target_tick_rate = 90; auto t0 = GetTickCount64(); float one_sec_timer = 0;