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...
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user