Fix #31400: opengl offscreen render not respecting theme settings.

This commit is contained in:
Brecht Van Lommel 2012-05-18 14:05:59 +00:00
parent 578864180b
commit 74367ae091

@ -2435,6 +2435,8 @@ void ED_view3d_draw_offscreen(Scene *scene, View3D *v3d, ARegion *ar,
ar->winrct.xmax = winx;
ar->winrct.ymax = winy;
/* set theme */
UI_SetTheme(SPACE_VIEW3D, RGN_TYPE_WINDOW);
/* set flags */
G.f |= G_RENDER_OGL;