Unable to create CIContext from 3.0 EAGLContext

If I initialize EAGLContextas follows

_eaglContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2]

The program works fine, but using kEAGLRenderingAPIOpenGLES3, the following code fails:

_ciContext = [CIContext contextWithEAGLContext:_eaglContext options:options];

CIContext indicates that "the OpenGL ES context should support OpenGL ES 2.0," but I had the impression that 3.0 should have been backward compatible ...

What am I missing?

+4
source share
1 answer

To console output:

"CIContexts can only be created using ES 2.0 EAGLContexts"

-1
source

Source: https://habr.com/ru/post/1533550/


All Articles