Cycles:
* Use float_to_int() functions in a few more places.
This commit is contained in:
@@ -45,7 +45,7 @@ __device_inline int svm_image_texture_wrap_clamp(int x, int width)
|
||||
|
||||
__device_inline float svm_image_texture_frac(float x, int *ix)
|
||||
{
|
||||
int i = (int)x - ((x < 0.0f)? 1: 0);
|
||||
int i = float_to_int(x) - ((x < 0.0f)? 1: 0);
|
||||
*ix = i;
|
||||
return x - (float)i;
|
||||
}
|
||||
|
Reference in New Issue
Block a user