diff --git a/scene_opengl.cpp b/scene_opengl.cpp index 9f7399ee79..8b0f24a349 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -460,7 +460,7 @@ static void scheduleVboReInit() delete timer; timer = new QTimer(gs_debuggedScene); timer->setSingleShot(true); - QObject::connect(timer, &QTimer::timeout, gs_debuggedScene, []() { + QObject::connect(timer.data(), &QTimer::timeout, gs_debuggedScene, []() { GLVertexBuffer::cleanup(); GLVertexBuffer::initStatic(); });