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-15 12:35:01 +0300
committerTon Roosendaal <ton@blender.org>2006-02-15 12:35:01 +0300
commit9ef9d66a26a18f9c0741b8fe9849c5e8eea8bdb0 (patch)
tree1fc92b430fb644ee6355e4d2a52b37562b92ee42 /source/blender/src/renderwin.c
parent8bc006083518a446a61deaa83f06e7f88bb2eb9c (diff)
- Preview render (buttons) was executing the 'data ipos', causing inserting
keys with IKEY in buttons to not work. - Crash in opengl while rendering was caused by the fact that scanline updates are drawn in the main thread, whilst the actual render thread then can already be doing different stuff. Especially with many layers & passes it's getting confusing easily :) Convention now is that scanline render updates only happen while the thread is looping over scanlines. As soon as it reached the last, no drawing happens, not even to update the last segment. This isnt a problen, since any finished tile is drawn again entirely.
Diffstat (limited to 'source/blender/src/renderwin.c')
-rw-r--r--source/blender/src/renderwin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/src/renderwin.c b/source/blender/src/renderwin.c
index 0f0fa369e14..449798ccdc0 100644
--- a/source/blender/src/renderwin.c
+++ b/source/blender/src/renderwin.c
@@ -763,7 +763,8 @@ static void renderwin_progress(RenderWin *rw, RenderResult *rr, rcti *renrect)
if(renrect) {
ymin= renrect->ymin;
ymax= renrect->ymax-ymin;
- if(ymax<2 || renrect->ymax>=rr->recty) return;
+ if(ymax<2 || renrect->ymax>=rr->recty) /* if ymax==recty, rendering of layer is ready, we should not draw, other things happen... */
+ return;
renrect->ymin= renrect->ymax;
}
else {