Re: ID3DXEffect::SetValue

2012-02-06 Thread Rico Schüller
Am 06.02.2012 18:18, schrieb Luis Carlos Busquets Pérez: The current implementation includes a check on param->bytes>= bytes specifically: if (data&& param->bytes>= bytes) { ... } So if bytesbytes returns D3DERR_INVALIDCALL. However, the MS version does not act that way: If the parameter i

Re: ID3DXEffect::SetValue

2012-02-06 Thread Austin English
On Mon, Feb 6, 2012 at 09:18, Luis Carlos Busquets Pérez wrote: > The current implementation includes a check on param->bytes >= bytes > > specifically: > > if (data && param->bytes >= bytes) > { > > ... > > } > > So if bytesbytes returns D3DERR_INVALIDCALL. > > However, the MS version does not ac

ID3DXEffect::SetValue

2012-02-06 Thread Luis Carlos Busquets Pérez
The current implementation includes a check on param->bytes >= bytes specifically: if (data && param->bytes >= bytes) { ... } So if bytesbytes returns D3DERR_INVALIDCALL. However, the MS version does not act that way: If the parameter is shorter than the length of the data, then the data th