Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-02-21 13:47:08 +0300
committerTon Roosendaal <ton@blender.org>2006-02-21 13:47:08 +0300
commita2a2ad98e2774930347ffd09a691c1e6d4802ce0 (patch)
tree99540e6a8adb94ed2f35a04074f1499a2dc7e92e /source/blender/src/renderwin.c
parent02dc8de55d4372e43ff9acab372b4e10cad8c987 (diff)
Carefully went over all scanline updating while rendering, to ensure only
updates are allowed to draw when a part is within a scanline rendering loop. Might solve threads issues with opengl...
Diffstat (limited to 'source/blender/src/renderwin.c')
-rw-r--r--source/blender/src/renderwin.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/src/renderwin.c b/source/blender/src/renderwin.c
index b980870dfca..38004e986d5 100644
--- a/source/blender/src/renderwin.c
+++ b/source/blender/src/renderwin.c
@@ -761,9 +761,13 @@ static void renderwin_progress(RenderWin *rw, RenderResult *rr, rcti *renrect)
/* if renrect argument, we only display scanlines */
if(renrect) {
+ /* if ymax==recty, rendering of layer is ready, we should not draw, other things happen... */
+ if(rr->renlay==NULL || renrect->ymax>=rr->recty)
+ return;
+
ymin= renrect->ymin;
ymax= renrect->ymax-ymin;
- if(ymax<2 || renrect->ymax>=rr->recty) /* if ymax==recty, rendering of layer is ready, we should not draw, other things happen... */
+ if(ymax<2)
return;
renrect->ymin= renrect->ymax;
}