summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrotord/rotor.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/rotord/rotor.h b/rotord/rotor.h
index f06af2c..407d57c 100755
--- a/rotord/rotor.h
+++ b/rotord/rotor.h
@@ -622,11 +622,12 @@ namespace Rotor {
else
++i;
}
- image->setup(frame.w,frame.h);
+ //if frame has already been calculated just return it
+ if (image) delete image;
if (image_inputs.size()) {
if (image_inputs[0]->connection){
if (LUT) {
- Image *in= (((Image_node*)image_inputs[0]->connection)->get_output(frame));
+ (*image)= *(((Image_node*)image_inputs[0]->connection)->get_output(frame));
for (int i=0;i<frame.w*frame.h*3;i++){
image->RGBdata[i]=LUT[in->RGBdata[i]];
}