On Wed, Jun 17, 2009 at 1:37 PM, Stefan Dösinger <[email protected]> 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
