Browse Source

Fix lamino_ramp filter

Tomas Farago 9 years ago
parent
commit
77dfc66bb3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lamino_ramp.cl

+ 1 - 1
src/lamino_ramp.cl

@@ -33,7 +33,7 @@ __kernel void lamino_ramp_create_filter(
     }
 
     int x = width - idx; 
-    if( (idx >= 3*quatw) && ( (x%2) != 0))
+    if( (idx >= (width - quatw)) && ( (x%2) != 0))
     {
         flt[idx] = scale*sin2/((float)x*(float)x*const_pi_tau);
         return;