From 82bf8227bfe09d59153220b3f0cc1f83d4e11cc7 Mon Sep 17 00:00:00 2001 From: manongjohn <19245851+manongjohn@users.noreply.github.com> Date: Sun, 25 Jun 2023 12:12:37 -0400 Subject: [PATCH] Fix plastic render crash --- toonz/sources/toonzlib/plasticdeformerfx.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); }