forked from bartvdbraak/blender
Bug fix #34334
For 2.66a Soft shadow was drawing a complete rect, but it should skip the top edge. That allows transparent menus to still have a shadow too.
This commit is contained in:
parent
1a7ab1da09
commit
032923a9f5
@ -1855,7 +1855,7 @@ static void widget_softshadow(const rcti *rect, int roundboxalign, const float r
|
|||||||
widget_verts_to_quad_strip(&wtb, totvert, quad_strip);
|
widget_verts_to_quad_strip(&wtb, totvert, quad_strip);
|
||||||
|
|
||||||
glVertexPointer(2, GL_FLOAT, 0, quad_strip);
|
glVertexPointer(2, GL_FLOAT, 0, quad_strip);
|
||||||
glDrawArrays(GL_QUAD_STRIP, 0, totvert * 2 + 2);
|
glDrawArrays(GL_QUAD_STRIP, 0, totvert * 2); /* add + 2 for getting a complete soft rect. Now it skips top edge to allow transparent menus */
|
||||||
}
|
}
|
||||||
|
|
||||||
glDisableClientState(GL_VERTEX_ARRAY);
|
glDisableClientState(GL_VERTEX_ARRAY);
|
||||||
|
Loading…
Reference in New Issue
Block a user