diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-01-05 14:26:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-01-05 14:26:33 +0400 |
commit | bb744090317962faf66093ccccef2fe8c1947017 (patch) | |
tree | e9ed492e9de613d6ee91daa7063a40f0e866f0a0 /source | |
parent | 9106b3b10782da51814d3a859eebae51085c374c (diff) |
revert r53570, alpha background is useful for projection paint 'Quick Edit',
it would also give odd results drawing semi transparent faces will give partial alpha which is strange to have with solid backdrop.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_draw.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index e7243e9d4b9..4ccf26e12b1 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -2596,11 +2596,10 @@ void ED_view3d_draw_offscreen(Scene *scene, View3D *v3d, ARegion *ar, linearrgb_to_srgb_v3_v3(backcol, &scene->world->horr); } - glClearColor(backcol[0], backcol[1], backcol[2], 1.0f); + glClearColor(backcol[0], backcol[1], backcol[2], 0.0f); } else { - UI_GetThemeColor3fv(TH_BACK, backcol); - glClearColor(backcol[0], backcol[1], backcol[2], 1.0f); + UI_ThemeClearColor(TH_BACK); } |