diff options
-rw-r--r-- | intern/cycles/util/util_distort.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/util/util_distort.h b/intern/cycles/util/util_distort.h index 6f8d4f259ff..174b918677c 100644 --- a/intern/cycles/util/util_distort.h +++ b/intern/cycles/util/util_distort.h @@ -65,8 +65,8 @@ ccl_device void util_invert_polynomial_distortion(const float2 image, image.x, image.y, &normalized_x, &normalized_y); - result->x = normalized_x * focal_length + principal_point.x; - result->y = normalized_y * focal_length + principal_point.y; + result->x = normalized_x * (double)focal_length + (double)principal_point.x; + result->y = normalized_y * (double)focal_length + (double)principal_point.y; #else *result = image; #endif |