Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2004-10-26 22:47:54 +0400
committerTon Roosendaal <ton@blender.org>2004-10-26 22:47:54 +0400
commitb724cc58b23e4a9dd08979ec44cdb5ed25fd53ce (patch)
tree0fa356e7425212e608ab6943f788679a6f2ed2ad /source/blender/src/interface_draw.c
parent06cb471269c59ea36443f033f6308eadb500a720 (diff)
Added glBlendFunc() in draw menu, but that's zealotic... anyhoo, who knows
it solves issues with transp menus
Diffstat (limited to 'source/blender/src/interface_draw.c')
-rw-r--r--source/blender/src/interface_draw.c5
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);