History

Fix screenshare on MacOS DEBUG builds; fix z-fighting on smartboard in screenshare mode

Zach committed 6 years ago

Commit 7b495421 parent 0a12dc72 files · +4 −4Browse files

Showing the changes to interface/src/scripting/ScreenshareScriptingInterface.cpp (1 of 2 files). Show all

Unified · Split

interface/src/scripting/ScreenshareScriptingInterface.cpp+2−2
@@ -90,7 +90,7 @@ static const EntityTypes::EntityType LOCAL_SCREENSHARE_WEB_ENTITY_TYPE = EntityT · 89 unmodified lines
9090 static const uint8_t LOCAL_SCREENSHARE_WEB_ENTITY_FPS = 30;
9191 // This is going to be a good amount of work to make this work dynamically for any screensize.
9292 // V1 will have only hardcoded values.
93−static const glm::vec3 LOCAL_SCREENSHARE_WEB_ENTITY_LOCAL_POSITION(0.0128f, -0.0918f, 0.0771f);
93+static const glm::vec3 LOCAL_SCREENSHARE_WEB_ENTITY_LOCAL_POSITION(0.0128f, -0.0918f, 0.0711f);
9494 static const glm::vec3 LOCAL_SCREENSHARE_WEB_ENTITY_DIMENSIONS(3.6790f, 2.0990f, 0.0100f);
9595 static const QString LOCAL_SCREENSHARE_WEB_ENTITY_URL =
9696 "https://content.highfidelity.com/Experiences/Releases/usefulUtilities/smartBoard/screenshareViewer/screenshareClient.html";
@@ -124,7 +124,7 @@ void ScreenshareScriptingInterface::startScreenshare(const QUuid& screenshareZon · 27 unmodified lines
124124 // Ensure that the screenshare executable exists where we expect it to.
125125 // Error out and reset the screen share state machine if the executable doesn't exist.
126126 QFileInfo screenshareExecutable(SCREENSHARE_EXE_PATH);
127− if (!screenshareExecutable.exists() || !screenshareExecutable.isFile()) {
127+ if (!screenshareExecutable.exists() || !(screenshareExecutable.isFile() || screenshareExecutable.isBundle())) {
128128 qDebug() << "Screenshare executable doesn't exist at" << SCREENSHARE_EXE_PATH;
129129 stopScreenshare();
130130 emit screenshareError();