From 3a058d9958cd6042e8917ce46bc07e870c0515cb Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 10 Sep 2007 05:13:12 +0000 Subject: [PATCH] moving to new post-processing database *** WARNING *** do not upgrade if you need plugins or adaptive view: these have not been ported (yet) to the new database *** WARNING *** --- Graphics/Post.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Graphics/Post.cpp b/Graphics/Post.cpp index c10c8226d2..e7a71e2364 100644 --- a/Graphics/Post.cpp +++ b/Graphics/Post.cpp @@ -1,4 +1,4 @@ -// $Id: Post.cpp,v 1.128 2007-09-10 04:47:03 geuzaine Exp $ +// $Id: Post.cpp,v 1.129 2007-09-10 05:13:12 geuzaine Exp $ // // Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle // @@ -1387,10 +1387,11 @@ void Draw_Post() if(!CTX.post.draw) return; - if(!CTX.threads_lock){ - CTX.threads_lock = 1; + static bool busy = false; + if(!busy){ + busy = true; std::for_each(PView::list.begin(), PView::list.end(), initPView()); std::for_each(PView::list.begin(), PView::list.end(), drawPView()); - CTX.threads_lock = 0; + busy = false; } } -- GitLab