diff --git a/examples/opencl/histogram.cpp b/examples/opencl/histogram.cpp index 289f950c..9fc85ff5 100644 --- a/examples/opencl/histogram.cpp +++ b/examples/opencl/histogram.cpp @@ -101,8 +101,8 @@ static const std::string fractal_ocl_kernel = "kernel\n" "void image_gen(global unsigned char* out, const unsigned w, const unsigned h, float persistance, int tileSize)\n" "{\n" -" int x = get_group_id(0) * get_global_size(0)/get_num_groups(0) + get_local_id(0);\n" -" int y = get_group_id(1) * get_global_size(1)/get_num_groups(1) + get_local_id(1);\n" +" int x = get_global_id(0);\n" +" int y = get_global_id(1);\n" "\n" " if (x