Potential fix for crashing ogl in drawing render updates... ATI only?
authorTon Roosendaal <ton@blender.org>
Tue, 14 Feb 2006 22:14:14 +0000 (22:14 +0000)
committerTon Roosendaal <ton@blender.org>
Tue, 14 Feb 2006 22:14:14 +0000 (22:14 +0000)
I don't know why, but at Andrea's system it goes fine.

source/blender/src/renderwin.c

index 06bc3554cf207118d69f4e8327b25d5672cbe35c..0f0fa369e14f3a8ee74b3119eb71ede796283248 100644 (file)
@@ -762,8 +762,8 @@ static void renderwin_progress(RenderWin *rw, RenderResult *rr, rcti *renrect)
        /* if renrect argument, we only display scanlines */
        if(renrect) {
                ymin= renrect->ymin;
-               ymax= renrect->ymax-ymin;       /* dunno... scanline updating seems to be nasty? */
-               if(ymax<2) return;
+               ymax= renrect->ymax-ymin;
+               if(ymax<2 || renrect->ymax>=rr->recty) return;
                renrect->ymin= renrect->ymax;
        }
        else {