Re: [AD] blender operations SRC and DST

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> Oh.. its because the primitives addon sets up its own blending and
> doesn't take SRC_COLOR or DST_COLOR into account. Probably if there is
> this level of sharing the blending code should be made public and the
> primitives addon can just call it.
>
> prim_opengl.c:setup_blending
>
> I think I could remove that assert about the alpha factor not
> recognizing SRC_COLOR and DST_COLOR. For the alpha blenders they should
> just use the src->a or dst->a as appropriate.
>

There was an additional duplication of the gl blending setup between
ogl_bitmap.c and ogl_draw.c. I moved the setup code from ogl_bitmap.c to
ogl_draw.c because it looks like setup_blending was the most up-to-date
version. Now ex_blend2 looks fine.




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/