allow switching display modes to work in desktop

This commit is contained in:
David Kelly 2017-07-07 10:34:11 -07:00
parent 93840bf936
commit 688b5dad8b

View file

@ -220,9 +220,12 @@
var url = (camera) ? (showCameraView ? "resource://spectatorCameraFrame" : "resource://hmdPreviewFrame") : "";
sendToQml({ method: 'showPreviewTextureNotInstructions', setting: !!url, url: url});
// FIXME: temporary hack to avoid setting the display texture to hmdPreviewFrame
// until it is the correct mono.
if (url != "resource://hmdPreviewFrame") {
if (url === "resource://hmdPreviewFrame") {
Window.setDisplayTexture("");
} else {
Window.setDisplayTexture(url);
}
}