Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenFlipper-Free
OpenFlipper
Commits
386eb643
Commit
386eb643
authored
Mar 20, 2018
by
Martin Schultz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added profile option to set OpenGL profile explicitly
parent
0f8c9c75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
OpenFlipper.cc
OpenFlipper.cc
+14
-0
No files found.
OpenFlipper.cc
View file @
386eb643
...
...
@@ -351,6 +351,9 @@ CommandLineParseResult parseCommandLine(QCommandLineParser &parser, QString *err
QCommandLineOption
coreProfileOption
(
"core-profile"
,
QCoreApplication
::
translate
(
"main"
,
"OpenGL Core Profile Mode"
));
parser
.
addOption
(
coreProfileOption
);
QCommandLineOption
profileOption
(
"profile"
,
QCoreApplication
::
translate
(
"main"
,
"Request OpenGL context profile <profile> with profile set as compat or core"
),
QCoreApplication
::
translate
(
"main"
,
"<compat | core >"
));
profileOption
.
setDefaultValue
(
"compat"
);
parser
.
addOption
(
profileOption
);
const
QCommandLineOption
helpOption
=
parser
.
addHelpOption
();
const
QCommandLineOption
versionOption
=
parser
.
addVersionOption
();
...
...
@@ -413,6 +416,17 @@ CommandLineParseResult parseCommandLine(QCommandLineParser &parser, QString *err
OpenFlipper
::
Options
::
remoteControl
(
port
.
toInt
());
}
if
(
parser
.
value
(
profileOption
)
==
"core"
)
{
OpenFlipper
::
Options
::
coreProfile
(
true
);
}
else
{
if
(
parser
.
value
(
profileOption
)
==
"compat"
)
{
OpenFlipper
::
Options
::
coreProfile
(
false
);
}
}
if
(
parser
.
isSet
(
coreProfileOption
))
{
OpenFlipper
::
Options
::
coreProfile
(
true
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment