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
3fc527d1
Commit
3fc527d1
authored
Apr 03, 2018
by
Martin Schultz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make the global context current from the beginning
parent
5d774d2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
OpenFlipper.cc
OpenFlipper.cc
+2
-4
No files found.
OpenFlipper.cc
View file @
3fc527d1
...
...
@@ -537,10 +537,8 @@ int main(int argc, char **argv)
QOffscreenSurface
*
surface
=
new
QOffscreenSurface
();
surface
->
create
();
QOpenGLContext
context
;
context
.
setScreen
(
screen
);
context
.
create
();
context
.
makeCurrent
(
surface
);
//make the globally shared OpenGLContext current
QOpenGLContext
::
globalShareContext
()
->
makeCurrent
(
surface
);
#endif
...
...
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