mirror of
https://github.com/lubosz/overte.git
synced 2025-08-29 11:06:47 +02:00
allow switching display modes to work in desktop
This commit is contained in:
parent
93840bf936
commit
688b5dad8b
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue