Merge pull request #438 from bitwangyaoyao:2.4_fixwarings
authorAndrey Kamaev <andrey.kamaev@itseez.com>
Wed, 6 Feb 2013 10:04:27 +0000 (14:04 +0400)
committerOpenCV Buildbot <buildbot@opencv.org>
Wed, 6 Feb 2013 10:04:28 +0000 (14:04 +0400)
modules/ocl/doc/data_structures.rst
modules/ocl/src/pyrlk.cpp

index a9c2490..8519c40 100644 (file)
@@ -1,7 +1,7 @@
 Data Structures
 =============================
 
-.. ocv:class:: oclMat
+.. ocv:class:: ocl::oclMat
 
 OpenCV C++ 1-D or 2-D dense array class ::
 
index 8048faf..d14201d 100644 (file)
@@ -703,7 +703,7 @@ static cl_mem bindTexture(const oclMat &mat, int depth, int channels)
     desc.image_type       = CL_MEM_OBJECT_IMAGE2D;
     desc.image_width      = mat.step / mat.elemSize();
     desc.image_height     = mat.rows;
-    desc.image_depth      = NULL;
+    desc.image_depth      = 0;
     desc.image_array_size = 1;
     desc.image_row_pitch  = 0;
     desc.image_slice_pitch = 0;