diff --git a/toonz/sources/toonzlib/imagebuilders.cpp b/toonz/sources/toonzlib/imagebuilders.cpp index 508cd6d..4b59970 100644 --- a/toonz/sources/toonzlib/imagebuilders.cpp +++ b/toonz/sources/toonzlib/imagebuilders.cpp @@ -287,7 +287,7 @@ TImageP ImageRasterizer::build(int imFlags, void *extData) surface->create(); std::unique_ptr context(new QOpenGLContext()); - context->moveToThread(QThread::currentThread()); + context->create(); context->makeCurrent(surface.get()); TRaster32P ras(d); @@ -339,6 +339,7 @@ TImageP ImageRasterizer::build(int imFlags, void *extData) glPopAttrib(); context->doneCurrent(); + tglMakeCurrent(oldContext); TRasterImageP ri = TRasterImageP(ras); ri->setOffset(off + ras->getCenter());