diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-31 09:20:48 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-31 09:20:48 +0400 |
commit | e339acf3a948f279e359706ab1eae7734725f833 (patch) | |
tree | 7245aa4f746299ccdcc0c70d92555c5ce700e9e0 /source | |
parent | 7cb68f89ed0cef852ddd27d62d519c21a0a89b32 (diff) |
fix for a crash when loading a new blend file which had a scene with the same name as the old one, the freed backbuffer image from the previous blend file would get reused.
also NULL the bakebuf just incase its accessed in future though at the moment this isnt causing any problems.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/render/intern/source/convertblender.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/convertblender.c b/source/blender/render/intern/source/convertblender.c index 73addfb77e4..62f47dcd3b5 100644 --- a/source/blender/render/intern/source/convertblender.c +++ b/source/blender/render/intern/source/convertblender.c @@ -4636,7 +4636,10 @@ void RE_Database_Free(Render *re) re->totvlak=re->totvert=re->totstrand=re->totlamp=re->tothalo= 0; re->i.convertdone= 0; - + + re->backbuf= NULL; + re->bakebuf= NULL; + if(re->scene) if(re->scene->r.scemode & R_FREE_IMAGE) if((re->r.scemode & R_PREVIEWBUTS)==0) |