Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
OpenFlipper
Commits
9449c61d
Commit
9449c61d
authored
Feb 13, 2018
by
Martin Schultz
Browse files
only recreate the Context on Windows OS, as linux and OSX keep the debug
flag
parent
0bd46583
Changes
1
Hide whitespace changes
Inline
Side-by-side
Core/Core.cc
View file @
9449c61d
...
...
@@ -101,12 +101,14 @@
namespace
{
void
recreateContext
()
{
#ifdef WIN32
QOpenGLContext
*
ctx
=
QOpenGLContext
::
currentContext
();
QSurfaceFormat
format
=
QSurfaceFormat
::
defaultFormat
();
ctx
->
setFormat
(
format
);
ctx
->
create
();
QOffscreenSurface
*
surface
=
new
QOffscreenSurface
();
ctx
->
makeCurrent
(
surface
);
#endif
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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