• Alexander Alekhin's avatar
    ocl: validate arguments in KernelArgs constructor · 4c7aa864
    Alexander Alekhin authored
    - don't use undefined flag=0. It should be CONSTANT instead.
    - don't allow 'UMat* m=NULL' argument (except LOCAL/CONSTANT flags).
      This case is not handled well to provide NULL __global pointers.
      It is better to use '-D' macro defines instead (at least for performance)
    4c7aa864
arithm.cpp 124 KB