mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-22 08:04:49 -05:00
Set QTWEBENGINE_CHROMIUM_FLAGS to --ignore-gpu-blacklist on MacOS, so WebGL in 3D Map works
This commit is contained in:
parent
25cf60c4c5
commit
21d705b16c
@ -133,6 +133,13 @@ static int runQtApplication(int argc, char* argv[], qtwebapp::LoggerWithFile *lo
|
|||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
#ifdef __APPLE__
|
||||||
|
// Enable WebGL in QtWebEngine when OpenGL is only version 2.1 (Needed for 3D Map)
|
||||||
|
// This can be removed when we eventually request a 4.1 OpenGL context
|
||||||
|
// This needs to be executed before any other Qt code
|
||||||
|
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--ignore-gpu-blacklist");
|
||||||
|
#endif
|
||||||
|
|
||||||
qtwebapp::LoggerWithFile *logger = new qtwebapp::LoggerWithFile(qApp);
|
qtwebapp::LoggerWithFile *logger = new qtwebapp::LoggerWithFile(qApp);
|
||||||
logger->installMsgHandler();
|
logger->installMsgHandler();
|
||||||
int res = runQtApplication(argc, argv, logger);
|
int res = runQtApplication(argc, argv, logger);
|
||||||
|
Loading…
Reference in New Issue
Block a user