bugfix, crash when rendering normally and then with the opengl view.

This commit is contained in:
Campbell Barton 2010-01-21 11:34:36 +00:00
parent 9d54d6ba4e
commit b33fd1cd1a

@ -3009,6 +3009,9 @@ static void image_buffer_rect_update(Scene *scene, RenderResult *rr, ImBuf *ibuf
}
if(rectf==NULL) return;
if(ibuf->rect==NULL)
imb_addrectImBuf(ibuf);
rectf+= 4*(rr->rectx*ymin + xmin);
rectc= (char *)(ibuf->rect + ibuf->x*rymin + rxmin);