Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-07-05 16:23:29 +0400
committerTon Roosendaal <ton@blender.org>2006-07-05 16:23:29 +0400
commitb33d71749c04410ac12627e68135f3a48b8d63e3 (patch)
tree8b40379b2597b36d741da47632bb4df850a17dfa /source
parentf8377553c8a8211f5d8a7a86a1df90a3a63f69e4 (diff)
Testing in irc becomes more of battle in finding stupid ways to crash
Blender! Nevertheless, this case was fixable, so... Bug: While rendering opengl anims, closing the output window crashes blender.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/renderwin.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/src/renderwin.c b/source/blender/src/renderwin.c
index 12ba7f2f731..071ff4107b3 100644
--- a/source/blender/src/renderwin.c
+++ b/source/blender/src/renderwin.c
@@ -1235,6 +1235,9 @@ void BIF_do_ogl_render(View3D *v3d, int anim)
mh->start_movie(&G.scene->r, winx, winy);
for(CFRA= SFRA; CFRA<=EFRA; CFRA++) {
+ /* user event can close window */
+ if(render_win==NULL)
+ break;
drawview3d_render(v3d, winx, winy);
glReadPixels(0, 0, winx, winy, GL_RGBA, GL_UNSIGNED_BYTE, rr->rect32);
window_swap_buffers(render_win->win);
@@ -1279,7 +1282,8 @@ void BIF_do_ogl_render(View3D *v3d, int anim)
window_swap_buffers(render_win->win);
}
- renderwin_draw(render_win, 0);
+ if(render_win)
+ renderwin_draw(render_win, 0);
mainwindow_make_active();