diff options
author | Peter Schlaile <peter@schlaile.de> | 2007-09-15 22:54:03 +0400 |
---|---|---|
committer | Peter Schlaile <peter@schlaile.de> | 2007-09-15 22:54:03 +0400 |
commit | c8fe5a0ed95fa15e955d3224fd6a2c8a8b648d73 (patch) | |
tree | c95881287bd3685dc14f5bcccdc4a20969efd2c1 /source/blender/imbuf | |
parent | 3a90f211d2cff5aa93bf0d52688685f9b7e92299 (diff) |
== Sequencer ==
Bugfix for transform effect by Damiles.
Fixes crash with float buffers. (Don't try to render into output buffers,
that do not exist...)
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r-- | source/blender/imbuf/intern/imageprocess.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/imbuf/intern/imageprocess.c b/source/blender/imbuf/intern/imageprocess.c index c08b2c4d9ce..d3f75c9d64a 100644 --- a/source/blender/imbuf/intern/imageprocess.c +++ b/source/blender/imbuf/intern/imageprocess.c @@ -105,8 +105,8 @@ void bicubic_interpolation(ImBuf *in, ImBuf *out, float x, float y, int xout, in if (in == NULL) return; if (in->rect == NULL && in->rect_float == NULL) return; - do_rect= (in->rect != NULL); - do_float= (in->rect_float != NULL); + do_rect= (out->rect != NULL); + do_float= (out->rect_float != NULL); i= (int)floor(x); j= (int)floor(y); @@ -170,8 +170,8 @@ void bilinear_interpolation(ImBuf *in, ImBuf *out, float u, float v, int xout, i if (in==NULL) return; if (in->rect==NULL && in->rect_float==NULL) return; - do_rect= (in->rect != NULL); - do_float= (in->rect_float != NULL); + do_rect= (out->rect != NULL); + do_float= (out->rect_float != NULL); x1= (int)floor(u); x2= (int)ceil(u); @@ -246,8 +246,8 @@ void neareast_interpolation(ImBuf *in, ImBuf *out, float u, float v,int xout, in if (in==NULL) return; if (in->rect==NULL && in->rect_float==NULL) return; - do_rect= (in->rect != NULL); - do_float= (in->rect_float != NULL); + do_rect= (out->rect != NULL); + do_float= (out->rect_float != NULL); x1= (int)(u); y1= (int)(v); |