diff options
author | Ton Roosendaal <ton@blender.org> | 2004-10-26 22:47:54 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-10-26 22:47:54 +0400 |
commit | b724cc58b23e4a9dd08979ec44cdb5ed25fd53ce (patch) | |
tree | 0fa356e7425212e608ab6943f788679a6f2ed2ad /source | |
parent | 06cb471269c59ea36443f033f6308eadb500a720 (diff) |
Added glBlendFunc() in draw menu, but that's zealotic... anyhoo, who knows
it solves issues with transp menus
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/interface_draw.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/src/interface_draw.c b/source/blender/src/interface_draw.c index d0868ffa03f..3899d9ed101 100644 --- a/source/blender/src/interface_draw.c +++ b/source/blender/src/interface_draw.c @@ -1377,7 +1377,10 @@ static void ui_draw_pulldown_item(int type, int colorid, float asp, float x1, fl char col[4]; BIF_GetThemeColor4ubv(TH_MENU_BACK, col); - if(col[3]!=255) glEnable(GL_BLEND); + if(col[3]!=255) { + glEnable(GL_BLEND); + glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + } if((flag & UI_ACTIVE) && type!=LABEL) { BIF_ThemeColor4(TH_MENU_HILITE); |