summaryrefslogtreecommitdiff
path: root/rotord/src/nodes_channels.h
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/src/nodes_channels.h')
-rw-r--r--rotord/src/nodes_channels.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/rotord/src/nodes_channels.h b/rotord/src/nodes_channels.h
index 3b3fa70..7e5b507 100644
--- a/rotord/src/nodes_channels.h
+++ b/rotord/src/nodes_channels.h
@@ -373,6 +373,7 @@ namespace Rotor {
apply_LUT(in,image);
}
void apply_LUT(const Image& in,Image &out){ //facility to apply to other images for inherited classes
+ if (in.w==0) cerr<<type<<" node "<<ID<<" requesting 0 size LUT "<<endl;
out.setup(in.w,in.h);
for (int i=0;i<out.w*out.h*3;i++){
out.RGBdata[i]=LUT[in.RGBdata[i]];