Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-07-24 17:01:55 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-07-24 17:01:55 +0400
commit679847bd9922e01f6835e92856d3c00fe452656e (patch)
tree6bdc4fd26fa5d36a399497a94b4dccb46bc0ede8 /intern/cycles/render/image.cpp
parentc67e910df6f3608ee01a1f3bb757b922e9c51b41 (diff)
add prints for texture loading (we're running into texture limit a lot so its handy to see whats actually loading from the blend files)
Diffstat (limited to 'intern/cycles/render/image.cpp')
-rw-r--r--intern/cycles/render/image.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/render/image.cpp b/intern/cycles/render/image.cpp
index 1af0972ecf9..e2c760f0114 100644
--- a/intern/cycles/render/image.cpp
+++ b/intern/cycles/render/image.cpp
@@ -235,6 +235,8 @@ bool ImageManager::file_load_image(Image *img, device_vector<uchar4>& tex_img)
return false;
}
+ printf("loading byte image: '%s' %dx%d\n", img->filename.c_str(), width, height);
+
/* read RGBA pixels */
uchar *pixels = (uchar*)tex_img.resize(width, height);
int scanlinesize = width*components*sizeof(uchar);
@@ -297,6 +299,8 @@ bool ImageManager::file_load_float_image(Image *img, device_vector<float4>& tex_
return false;
}
+ printf("loading float image: '%s' %dx%d\n", img->filename.c_str(), width, height);
+
/* read RGBA pixels */
float *pixels = (float*)tex_img.resize(width, height);
int scanlinesize = width*components*sizeof(float);