[WINED3D 13/13] Further split GLSL & ARB_v/f_program generation and allow GLSL functions to be called.

H. Verbeet hverbeet at gmail.com
Wed May 10 10:07:37 CDT 2006

On 10/05/06, Jason Green <jave27 at gmail.com> wrote:
> On 5/10/06, H. Verbeet <hverbeet at gmail.com> wrote:
> > I think it would be best not to have USING_GLSL checks at several
> > different places in the code. The function signatures are the same, so
> > it wouldn't be that hard to just pass a pointer to the correct
> > function.
> >
> True, it could be combined better in that function.  I'll be on
> vacation for about a week, but I'll further clean that up when I get
> back.
> FYI - I placed the USING_GLSL define in wined3d_private.h because it
> will also be needed in other placed in wined3d as well.  At a minimum,
> we will also need it in drawprim.c - drawPrimitiveDrawStrided() where
> it sets the constants.  I have a patch that does that currently, but
> it's too ugly to submit yet.
Yes, although eventually it should become a variable rather than a constant.

More information about the wine-devel mailing list