Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -2882,11 +2882,19 @@ void Application::initializeGL() { · 2881 unmodified lines | ||
| 2882 | 2882 | } |
| 2883 | 2883 | |
| 2884 | 2884 | #if !defined(DISABLE_QML) |
| 2885 | + QStringList chromiumFlags; | |
| 2886 | + // Bug 21993: disable microphone and camera input | |
| 2887 | + chromiumFlags << "--use-fake-device-for-media-stream"; | |
| 2885 | 2888 | // Disable signed distance field font rendering on ATI/AMD GPUs, due to |
| 2886 | 2889 | // https://highfidelity.manuscript.com/f/cases/13677/Text-showing-up-white-on-Marketplace-app |
| 2887 | 2890 | std::string vendor{ (const char*)glGetString(GL_VENDOR) }; |
| 2888 | 2891 | if ((vendor.find("AMD") != std::string::npos) || (vendor.find("ATI") != std::string::npos)) { |
| 2889 | − qputenv("QTWEBENGINE_CHROMIUM_FLAGS", QByteArray("--disable-distance-field-text")); | |
| 2892 | + chromiumFlags << "--disable-distance-field-text"; | |
| 2893 | + } | |
| 2894 | + | |
| 2895 | + // Ensure all Qt webengine processes launched from us have the appropriate command line flags | |
| 2896 | + if (!chromiumFlags.empty()) { | |
| 2897 | + qputenv("QTWEBENGINE_CHROMIUM_FLAGS", chromiumFlags.join(' ').toLocal8Bit()); | |
| 2890 | 2898 | } |
| 2891 | 2899 | #endif |
| 2892 | 2900 | |