From aeac55af5e1bb32e70bfbd0a22c9cbac7832524e Mon Sep 17 00:00:00 2001 From: Fernando Jimenez Moreno Date: Thu, 24 Oct 2019 17:16:55 +0200 Subject: [PATCH] Append default prefs to UWP app args --- support/hololens/ServoApp/ServoControl/Servo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/support/hololens/ServoApp/ServoControl/Servo.cpp b/support/hololens/ServoApp/ServoControl/Servo.cpp index 70a5b9c6bf5..17aeb0d64e6 100644 --- a/support/hololens/ServoApp/ServoControl/Servo.cpp +++ b/support/hololens/ServoApp/ServoControl/Servo.cpp @@ -61,7 +61,8 @@ Servo::Servo(hstring url, hstring args, GLsizei width, GLsizei height, float dpi : mWindowHeight(height), mWindowWidth(width), mDelegate(aDelegate) { capi::CInitOptions o; - o.args = *hstring2char(args); + hstring defaultPrefs = L" --pref dom.webxr.enabled"; + o.args = *hstring2char(args + defaultPrefs); o.url = *hstring2char(url); o.width = mWindowWidth; o.height = mWindowHeight;