diff options
author | Ton Roosendaal <ton@blender.org> | 2009-06-08 16:10:39 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-06-08 16:10:39 +0400 |
commit | 098a0840a4fba050b733071eb028cea20370d2ff (patch) | |
tree | 0d3e34d6693da9b9f24a8819a19ed2211f3e8f2f | |
parent | d3467960d8e622f306c66062c53c725426f77369 (diff) |
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...
-rw-r--r-- | source/blender/editors/interface/interface_widgets.c | 8 |
1 files 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); |