Commit c5943198 authored by Martin Schultz's avatar Martin Schultz

added command line option to request core profile

parent 52e2b288
...@@ -342,6 +342,9 @@ CommandLineParseResult parseCommandLine(QCommandLineParser &parser, QString *err ...@@ -342,6 +342,9 @@ CommandLineParseResult parseCommandLine(QCommandLineParser &parser, QString *err
QCommandLineOption remotePortOption("remote-port",QCoreApplication::translate("main", "Remote port"),"portnumber"); QCommandLineOption remotePortOption("remote-port",QCoreApplication::translate("main", "Remote port"),"portnumber");
parser.addOption(remotePortOption); parser.addOption(remotePortOption);
QCommandLineOption coreProfileOption("core-profile",QCoreApplication::translate("main", "OpenGL Core Profile Mode"));
parser.addOption(coreProfileOption);
const QCommandLineOption helpOption = parser.addHelpOption(); const QCommandLineOption helpOption = parser.addHelpOption();
const QCommandLineOption versionOption = parser.addVersionOption(); const QCommandLineOption versionOption = parser.addVersionOption();
...@@ -402,7 +405,10 @@ CommandLineParseResult parseCommandLine(QCommandLineParser &parser, QString *err ...@@ -402,7 +405,10 @@ CommandLineParseResult parseCommandLine(QCommandLineParser &parser, QString *err
const QString port = parser.value("remote-port"); const QString port = parser.value("remote-port");
std::cerr << "Got port option : " << port.toStdString() << std::endl; std::cerr << "Got port option : " << port.toStdString() << std::endl;
OpenFlipper::Options::remoteControl(port.toInt()); OpenFlipper::Options::remoteControl(port.toInt());
}
if(parser.isSet(coreProfileOption)) {
OpenFlipper::Options::coreProfile(true);
} }
return CommandLineOk; return CommandLineOk;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment