Added glBlendFunc() in draw menu, but that's zealotic... anyhoo, who knows
authorTon Roosendaal <ton@blender.org>
Tue, 26 Oct 2004 18:47:54 +0000 (18:47 +0000)
committerTon Roosendaal <ton@blender.org>
Tue, 26 Oct 2004 18:47:54 +0000 (18:47 +0000)
it solves issues with transp menus

source/blender/src/interface_draw.c

index d0868ffa03fc77c0a88771671cecda202172ff85..3899d9ed101a9f4ebd942cc123ac6ad287f95e5e 100644 (file)
@@ -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);