Cycles: Fix crash loading single channel texture

Was  typo in recent isfinite check.
This commit is contained in:
Sergey Sharybin
2017-05-18 15:49:03 +02:00
parent 1247f609d4
commit 49bd3d3a1a

View File

@@ -672,7 +672,7 @@ bool ImageManager::file_load_image(Image *img,
} }
else { else {
for(size_t i = 0; i < num_pixels; ++i) { for(size_t i = 0; i < num_pixels; ++i) {
StorageType *pixel = &pixels[i*4]; StorageType *pixel = &pixels[i];
if(!isfinite(pixel[0])) { if(!isfinite(pixel[0])) {
pixel[0] = 0; pixel[0] = 0;
} }