diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-05-18 18:05:59 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-05-18 18:05:59 +0400 |
commit | 74367ae091c110dda14f94a7695b6e5f1e1d43d9 (patch) | |
tree | 50a927e9eb51a321d5d063f740eb10829b233edc /source | |
parent | 578864180b1e40a8689064763437247ff7a5826b (diff) |
Fix #31400: opengl offscreen render not respecting theme settings.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_draw.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index fe142ced7fa..d9126b3809a 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -2434,7 +2434,9 @@ void ED_view3d_draw_offscreen(Scene *scene, View3D *v3d, ARegion *ar, ar->winrct.ymin = 0; ar->winrct.xmax = winx; ar->winrct.ymax = winy; - + + /* set theme */ + UI_SetTheme(SPACE_VIEW3D, RGN_TYPE_WINDOW); /* set flags */ G.f |= G_RENDER_OGL; |