Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenFlipper
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
OpenFlipper-Free
OpenFlipper
Commits
2cb94c25
Commit
2cb94c25
authored
Apr 16, 2018
by
Martin Schultz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified glStereo option to be overrideable similar to other OpenGL
options
parent
21b24403
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
common/GlobalOptions.cc
common/GlobalOptions.cc
+13
-3
common/GlobalOptions.hh
common/GlobalOptions.hh
+1
-1
No files found.
common/GlobalOptions.cc
View file @
2cb94c25
...
...
@@ -150,6 +150,7 @@ static bool samplesOverride_ = false;
/// Store the opengl stereo support
static
bool
glStereo_
=
true
;
static
bool
overrideGLStereo_
=
false
;
/// Stereo mode
static
StereoMode
stereoMode_
=
OpenGL
;
...
...
@@ -453,13 +454,22 @@ int samples() {
}
/// Store opengl stereo mode setting
void
glStereo
(
bool
_glStereo
)
{
glStereo_
=
_glStereo
;
void
glStereo
(
bool
_glStereo
,
bool
_temporary
)
{
if
(
_temporary
)
{
glStereo_
=
_glStereo
;
overrideGLStereo_
=
true
;
}
else
OpenFlipperSettings
().
setValue
(
"Core/OpenGL/Stereo"
,
_glStereo
);
}
/// get current opengl stereo setting
bool
glStereo
(
)
{
return
glStereo_
;
if
(
overrideGLStereo_
)
return
glStereo_
;
else
return
OpenFlipperSettings
().
value
(
"Core/OpenGL/Stereo"
,
false
).
toBool
();
}
/// Store stereo mode setting
...
...
common/GlobalOptions.hh
View file @
2cb94c25
...
...
@@ -456,7 +456,7 @@ QString helpDirStr();
/// Store opengl stereo support setting
DLLEXPORT
void
glStereo
(
bool
_stereo
);
void
glStereo
(
bool
_stereo
,
bool
_temporary
=
false
);
/// will be set in core is opengl stereo is supported
DLLEXPORT
...
...
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