diff --git a/toonz/sources/toonzlib/plasticdeformerfx.cpp b/toonz/sources/toonzlib/plasticdeformerfx.cpp index b40f9831..da0ca5d4 100644 --- a/toonz/sources/toonzlib/plasticdeformerfx.cpp +++ b/toonz/sources/toonzlib/plasticdeformerfx.cpp @@ -444,8 +444,10 @@ void PlasticDeformerFx::doCompute(TTile &tile, double frame, // ts->unloadTexture(texId); // Auto-released // due to display list destruction - context->deleteLater(); - // context->doneCurrent(); + //context->deleteLater(); + context->moveToThread(0); + context->doneCurrent(); + delete context; } assert(glGetError() == GL_NO_ERROR); }