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
3
Merge Requests
3
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
0bd46583
Commit
0bd46583
authored
Feb 09, 2018
by
Martin Schultz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixWindowsDebugContext' into 'unstable'
Fix windows debug context See merge request
!59
parents
a45919f8
cc5745db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
Core/Core.cc
Core/Core.cc
+15
-0
No files found.
Core/Core.cc
View file @
0bd46583
...
...
@@ -98,6 +98,18 @@
//== IMPLEMENTATION ==========================================================
namespace
{
void
recreateContext
()
{
QOpenGLContext
*
ctx
=
QOpenGLContext
::
currentContext
();
QSurfaceFormat
format
=
QSurfaceFormat
::
defaultFormat
();
ctx
->
setFormat
(
format
);
ctx
->
create
();
QOffscreenSurface
*
surface
=
new
QOffscreenSurface
();
ctx
->
makeCurrent
(
surface
);
}
}
/** \brief Constuctor for the Core Widget ( This is stage 1 , call init for stage 2)
*
* Initialization is working the following way:\n
...
...
@@ -653,6 +665,7 @@ Core::init() {
coreWidget_
->
splitter_
->
restoreState
(
windowStates
.
value
(
"Core/LogSplitter"
).
toByteArray
());
coreWidget_
->
show
();
recreateContext
();
applyOptions
();
...
...
@@ -671,6 +684,8 @@ Core::init() {
}
else
{
coreWidget_
->
show
();
recreateContext
();
applyOptions
();
}
...
...
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