diff options
author | Ton Roosendaal <ton@blender.org> | 2005-12-19 14:30:52 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-12-19 14:30:52 +0300 |
commit | 60b22c1e7179682a65b87b4e2c617edb06505be3 (patch) | |
tree | e8f3ad56adb67d4e3dbb7a5639244c9b5630c661 /source/blender/render | |
parent | 0a64b3e7c4b21a8f5055298dc6c4c6eab4cd2355 (diff) |
#3598
Uninitialized 'alpha' flag in Image texture could cause render errors.
Didn't show in OSX though... (stupid system here inits stack to zero).
But, Ken Hughes found this, so all credits are for him!
Diffstat (limited to 'source/blender/render')
-rw-r--r-- | source/blender/render/intern/source/imagetexture.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/render/intern/source/imagetexture.c b/source/blender/render/intern/source/imagetexture.c index 2ddf08b29cc..ac501b5a504 100644 --- a/source/blender/render/intern/source/imagetexture.c +++ b/source/blender/render/intern/source/imagetexture.c @@ -496,6 +496,8 @@ static void boxsample(ImBuf *ibuf, float minx, float miny, float maxx, float max rf->ymin= miny*(ibuf->y); rf->ymax= maxy*(ibuf->y); + texr.talpha= texres->talpha; /* is read by boxsample_clip */ + if(imapextend) { CLAMP(rf->xmin, 0.0f, ibuf->x-1); CLAMP(rf->xmax, 0.0f, ibuf->x-1); |