mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 08:22:09 +02:00
Fix android crash
This commit is contained in:
parent
36edb939c3
commit
a3a952265a
2 changed files with 2 additions and 0 deletions
|
@ -88,6 +88,7 @@ public:
|
|||
// Move the OpenGL context to the present thread
|
||||
// Extra code because of the widget 'wrapper' context
|
||||
_context = context;
|
||||
_context->doneCurrent();
|
||||
_context->moveToThread(this);
|
||||
}
|
||||
|
||||
|
|
|
@ -73,6 +73,7 @@ bool OffscreenGLCanvas::create(QOpenGLContext* sharedContext) {
|
|||
if (!_context->makeCurrent(_offscreenSurface)) {
|
||||
qFatal("Unable to make offscreen surface current");
|
||||
}
|
||||
_context->doneCurrent();
|
||||
#else
|
||||
if (!_offscreenSurface->isValid()) {
|
||||
qFatal("Offscreen surface is invalid");
|
||||
|
|
Loading…
Reference in a new issue