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
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2009-06-08 16:10:39 +0400
committerTon Roosendaal <ton@blender.org>2009-06-08 16:10:39 +0400
commit098a0840a4fba050b733071eb028cea20370d2ff (patch)
tree0d3e34d6693da9b9f24a8819a19ed2211f3e8f2f /source
parentd3467960d8e622f306c66062c53c725426f77369 (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...
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/interface/interface_widgets.c8
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);