From c8fe5a0ed95fa15e955d3224fd6a2c8a8b648d73 Mon Sep 17 00:00:00 2001 From: Peter Schlaile Date: Sat, 15 Sep 2007 18:54:03 +0000 Subject: == Sequencer == Bugfix for transform effect by Damiles. Fixes crash with float buffers. (Don't try to render into output buffers, that do not exist...) --- source/blender/imbuf/intern/imageprocess.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source/blender/imbuf') 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); -- cgit v1.2.3