<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt">>>2012/6/12 Nozomi Kodama <<a ymailto="mailto:nozomi.kodama@yahoo.com" href="mailto:nozomi.kodama@yahoo.com">nozomi.kodama@yahoo.com</a>>:<br><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;">>><br>>> +    if ( (pq->w >= 1.0f) || (pq->w == -1.0f) )<br>><br>>I think the second comparison should be '<=', if you want to avoid getting NaNs.<br><br>I checked in Vista.  D3DX accepts -1.0f as input and returns what the patch does.<br><br>However, any value < -1.0f is a unacceptable value for D3DX ( D3DX returns (-1#IND00,-1#IND00,-1#IND00,-1#IND00) ).<br><br><br>Best regards<br>Nozomi<br> </div> </div>  </div></body></html>