I had extract Y U V data from video frame separately and saved them in data[0],data[1],data[2];
The frame size is 640*480;
Now I creat the pixe
Does your source image/video frame have a resolution which is a power of 2? If not, you must resize it before creating the texture.
Apple details the cause of this exact issue in Technical Q&A 1781
The issue is that the source pixel buffer must be IOSSurface backed. Specify an empty dictionary as the value in kCVPixelBufferIOSurfacePropertiesKey