GPUImage2 icon indicating copy to clipboard operation
GPUImage2 copied to clipboard

GPUImage2 return false when using image from screenshot iPhone X

Open daitq2310 opened this issue 6 years ago • 0 comments

I have tried to capturing screen of iPhone X and using GPUImage 2 for it.

let success = sharedImageProcessingContext.context.renderbufferStorage(Int(GL_RENDERBUFFER), from:self.layer as! CAEAGLLayer)
if !success {
    return
}

This code will be returned false and my app is crashed.

I have tried to using iPhone X's screenshot to send this image to other iOS devices and using other iOS devices' screenshot and this code still works.

I just don't understand why. Can someone explain that? Thank you.

daitq2310 avatar Jan 26 '18 03:01 daitq2310