fixed ocl_flip for cn==3
Merge pull request #3021 from ElenaGvozdeva:ocl_flip