Skip to content
Snippets Groups Projects
Commit 1283ecd9 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Possible fix for mem access bug

parent 0a15e36d
No related branches found
No related tags found
No related merge requests found
Pipeline #32791 failed
...@@ -134,7 +134,8 @@ __global__ void census_transform_kernel( ...@@ -134,7 +134,8 @@ __global__ void census_transform_kernel(
} }
} }
dest[x+y*width] = res; // FIXME: Should use feature pitch, not width.
if (x < width && y < height) dest[x+y*width] = res;
} }
template <typename T> template <typename T>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment