Commit c5943198 authored by Martin Schultz's avatar Martin Schultz
Browse files

added command line option to request core profile

parent 52e2b288
......@@ -342,6 +342,9 @@ CommandLineParseResult parseCommandLine(QCommandLineParser &parser, QString *err
QCommandLineOption remotePortOption("remote-port",QCoreApplication::translate("main", "Remote port"),"portnumber");
QCommandLineOption coreProfileOption("core-profile",QCoreApplication::translate("main", "OpenGL Core Profile Mode"));
const QCommandLineOption helpOption = parser.addHelpOption();
const QCommandLineOption versionOption = parser.addVersionOption();
......@@ -402,7 +405,10 @@ CommandLineParseResult parseCommandLine(QCommandLineParser &parser, QString *err
const QString port = parser.value("remote-port");
std::cerr << "Got port option : " << port.toStdString() << std::endl;
if(parser.isSet(coreProfileOption)) {
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