Fix #30900: when opengl offscreen render failed, the wait cursor would incorrectly

stay visible. Patch by Justin Dailey.
This commit is contained in:
Brecht Van Lommel
2012-04-11 08:27:07 +00:00
parent 5da50b9c09
commit fe7f354daa

View File

@@ -318,9 +318,6 @@ static int screen_opengl_render_init(bContext *C, wmOperator *op)
/* stop all running jobs, currently previews frustrate Render */
WM_jobs_stop_all(CTX_wm_manager(C));
/* handle UI stuff */
WM_cursor_wait(1);
/* create offscreen buffer */
sizex = (scene->r.size * scene->r.xsch) / 100;
sizey = (scene->r.size * scene->r.ysch) / 100;
@@ -333,6 +330,9 @@ static int screen_opengl_render_init(bContext *C, wmOperator *op)
return 0;
}
/* handle UI stuff */
WM_cursor_wait(1);
/* allocate opengl render */
oglrender = MEM_callocN(sizeof(OGLRender), "OGLRender");
op->customdata = oglrender;