mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 14:29:03 +02:00
Restore debug logger for GLES. Fix SIGABRT Cannot make QOpenGLContext current in a different thread
This commit is contained in:
parent
d529d7b1d3
commit
12b289bbc1
1 changed files with 1 additions and 3 deletions
|
@ -69,8 +69,7 @@ bool OffscreenGLCanvas::create(QOpenGLContext* sharedContext) {
|
||||||
qFatal("Offscreen surface is invalid");
|
qFatal("Offscreen surface is invalid");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(USE_GLES)
|
|
||||||
if (gl::Context::enableDebugLogger()) {
|
if (gl::Context::enableDebugLogger()) {
|
||||||
_context->makeCurrent(_offscreenSurface);
|
_context->makeCurrent(_offscreenSurface);
|
||||||
QOpenGLDebugLogger *logger = new QOpenGLDebugLogger(this);
|
QOpenGLDebugLogger *logger = new QOpenGLDebugLogger(this);
|
||||||
|
@ -80,7 +79,6 @@ bool OffscreenGLCanvas::create(QOpenGLContext* sharedContext) {
|
||||||
logger->startLogging(QOpenGLDebugLogger::SynchronousLogging);
|
logger->startLogging(QOpenGLDebugLogger::SynchronousLogging);
|
||||||
_context->doneCurrent();
|
_context->doneCurrent();
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue