hack to not switch display to hmdPreviewFrame texture (temporary)

This commit is contained in:
David Kelly 2017-07-06 18:13:24 -07:00
parent b41c470064
commit 93840bf936

View file

@ -220,7 +220,11 @@
var url = (camera) ? (showCameraView ? "resource://spectatorCameraFrame" : "resource://hmdPreviewFrame") : "";
sendToQml({ method: 'showPreviewTextureNotInstructions', setting: !!url, url: url});
Window.setDisplayTexture(url);
// FIXME: temporary hack to avoid setting the display texture to hmdPreviewFrame
// until it is the correct mono.
if (url != "resource://hmdPreviewFrame") {
Window.setDisplayTexture(url);
}
}
const MONITOR_SHOWS_CAMERA_VIEW_DEFAULT = false;
var monitorShowsCameraView = !!Settings.getValue('spectatorCamera/monitorShowsCameraView', MONITOR_SHOWS_CAMERA_VIEW_DEFAULT);