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

Allan Tong actong88 at gmail.com
Wed Jun 17 14:45:12 CDT 2009


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]);

Should this be "ctx->ps_input[idx]"?

> +                            }
> +                            else
> +                            {
> +                                ERR("Pixel shader input register out of bounds: %u\n", idx);
> +                                sprintf(register_name, "out_of_bounds_%u", idx);
> +                            }
> +                        }

 - Allan



More information about the wine-devel mailing list