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...
This commit is contained in:
2009-06-08 12:10:39 +00:00
parent d3467960d8
commit 098a0840a4

View File

@@ -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);