4

If I initialize the EAGLContext like this

_eaglContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2]

the program runs fine but using kEAGLRenderingAPIOpenGLES3, the following code causes a crash:

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

CIContext class reference states that "The OpenGL ES context must support OpenGL ES 2.0" but I was under the impression that 3.0 was supposed to be backwards compatible...

What am I missing?

Brad Larson
  • 170,088
  • 45
  • 397
  • 571
Maxi Mus
  • 795
  • 1
  • 6
  • 20

1 Answers1

-1

From the console output:

"CIContexts can only be created with ES 2.0 EAGLContexts"

joelg
  • 1,094
  • 9
  • 19