Sequence render fix (report Johnny Matthews):

When a sequencer has mixed use of 32 bits and float images (note, Scene
strip returns float image too), the old 32 bits image should be freed,
otherwise it keeps saving that image.
This commit is contained in:
2006-08-10 13:48:04 +00:00
parent 7440aba482
commit 411332d953
2 changed files with 8 additions and 0 deletions

View File

@@ -1258,6 +1258,13 @@ void do_render_seq(RenderResult *rr, int cfra)
rr->rectf= MEM_mallocN(4*sizeof(float)*rr->rectx*rr->recty, "render_seq rectf");
memcpy(rr->rectf, ibuf->rect_float, 4*sizeof(float)*rr->rectx*rr->recty);
/* TSK! Since sequence render doesn't free the *rr render result, the old rect32
can hang around when sequence render has rendered a 32 bits one before */
if(rr->rect32) {
MEM_freeN(rr->rect32);
rr->rect32= NULL;
}
}
else if(ibuf->rect) {
if (!rr->rect32)