From 098a0840a4fba050b733071eb028cea20370d2ff Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Mon, 8 Jun 2009 12:10:39 +0000 Subject: [PATCH] 2.5 Removed masking idea for preview draw, it appears Win32 && X11 windows are 24 bits, not 32 bits with alpha. Not going to open that can of worm to add this, will find a different masking method... --- source/blender/editors/interface/interface_widgets.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c index e809f1099c6..6046a74325b 100644 --- a/source/blender/editors/interface/interface_widgets.c +++ b/source/blender/editors/interface/interface_widgets.c @@ -1623,13 +1623,13 @@ static void widget_draw_extra_mask(const bContext *C, uiBut *but, uiWidgetType * widgetbase_draw(&wtb, wcol); if(but->block->drawextra) { - glBlendFunc(GL_ONE_MINUS_DST_ALPHA, GL_ONE); - glEnable(GL_BLEND); + //glBlendFunc(GL_ONE_MINUS_DST_ALPHA, GL_ONE); + //glEnable(GL_BLEND); but->block->drawextra(C, but->poin, rect); - glDisable(GL_BLEND); - glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + //glDisable(GL_BLEND); + //glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); } glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);