diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-21 14:34:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-21 14:34:36 +0300 |
commit | b33fd1cd1a767443bd5b8558c98ad62b61e016c4 (patch) | |
tree | c81e98f328dac6526d34a07b1584d8d4bf3b2aa4 /source/blender/editors/screen | |
parent | 9d54d6ba4e78e83350742b40f9f14ffb5cb8d2f1 (diff) |
bugfix, crash when rendering normally and then with the opengl view.
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index 87b61d2df27..32f6ba0ce85 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -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); |