By pascalauberson
on Thu, 10/02/2014 - 18:58
I ran into this problem yesterday and eventually found the solution so thought i'd put the answer here in case anyone else has it.
If you create another OpenGL context in your app there's a good chance your Vuforia view will stop showing.
This is because createFramebuffer (in ImageTargetsEAGLView.mm) is called on the main thread. Before that happens your other OpenGL context may have set the current context.
To fix this just add
[EAGLContext setCurrentContext:context];
after
- (void) createFramebuffer { if (context) {
Would be good if the sample could be updated to include this or deal with this in another way.
Pascal.