mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 16:10:40 +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
|
@ -70,7 +70,6 @@ bool OffscreenGLCanvas::create(QOpenGLContext* sharedContext) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#if !defined(USE_GLES)
|
||||
if (gl::Context::enableDebugLogger()) {
|
||||
_context->makeCurrent(_offscreenSurface);
|
||||
QOpenGLDebugLogger *logger = new QOpenGLDebugLogger(this);
|
||||
|
@ -80,7 +79,6 @@ bool OffscreenGLCanvas::create(QOpenGLContext* sharedContext) {
|
|||
logger->startLogging(QOpenGLDebugLogger::SynchronousLogging);
|
||||
_context->doneCurrent();
|
||||
}
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue