[PATCH 2/5] d3dx9_36: Implemented ID3DXConstantTable_SetIntArray and ID3DXConstantTable_SetInt

Travis Athougies iammisc at gmail.com
Tue Feb 8 19:17:17 CST 2011


On Feb 8, 2011, at 4:10 AM, Matteo Bruni <matteo.mystral at gmail.com>  
wrote:

>> +       /* We need the for loop, since we need to convert the  
>> integer to a float */
>> +        for (i = 0; i < count && i < desc.RegisterCount; i++)
>> +        {
>> +            row[0] = (float)n[i];
>
> The cast is unneeded, and the comment above is too.

If it's being passed into set*shaderconstantf, shouldn't it need to be  
cast to a float? Or am I mishnderstaning you?

Travis



More information about the wine-devel mailing list