[3/6] WineD3D: Handle SM 3.0 varyings in ARB

Stefan Dösinger stefandoesinger at gmx.at
Wed Jun 17 16:19:00 CDT 2009


Am Wednesday 17 June 2009 21:45:12 schrieb Allan Tong:
> On Wed, Jun 17, 2009 at 1:37 PM, Stefan Dösinger <stefan at codeweavers.com> 
wrote:
> > +                        if(strcmp(rel_reg, "**aL_emul**") == 0)
> > +                        {
> > +                            DWORD idx = ctx->aL + reg->idx;
> > +                            if(idx < 10)
>
> Seems like this should be MAX_REG_INPUT instead of 10.

> > +                            {
> > +                                strcpy(register_name,
> > ctx->ps_input[reg->idx]);
Yep, in both cases you're right - thanks for catching that.

(This emulated aL varying indexing is kinda academic at this point since I 
don't intend to ever run 3.0 shaders without the proper NV extensions)



More information about the wine-devel mailing list