Restore debug logger for GLES. Fix SIGABRT Cannot make QOpenGLContext current in a different thread

This commit is contained in:
Gabriel Calero 2018-03-22 12:38:56 -03:00
parent d529d7b1d3
commit 12b289bbc1

View file

@ -69,8 +69,7 @@ bool OffscreenGLCanvas::create(QOpenGLContext* sharedContext) {
qFatal("Offscreen surface is invalid");
}
#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;
}