An EAGLContext object manages the state information, commands, and resources needed to draw using OpenGL ES.
Questions tagged [eaglcontext]
30 questions
21
votes
1 answer
Can Vertex Array Objects (VAOs) be shared across EAGLContexts in OpenGL ES?
Spoiler: I'm fairly confident that the answer is NO, but that's only after a day of very frustrated debugging. Now I would like to know if that is indeed the case (and if so, how I might have known), or if I'm just doing something completely…

Matt Wilding
- 20,115
- 3
- 67
- 95
8
votes
3 answers
-[EAGLContext renderbufferStorage:fromDrawable:] Failing the second time on?
I'm developing an iOS openGL ES application.
I'm doing the usual EAGLView / ES2Render stuff.
On startup, frambuffer creation succeeds, using the following code:
- (BOOL) createFramebuffers
{
[EAGLContext setCurrentContext:_mainContext];
//…

Nicolas Miari
- 16,006
- 8
- 81
- 189
7
votes
1 answer
GLKView is blank when drawn
I am trying to place images into a UITableViewCell using a GLKView to draw the image.
I have a prototype cell in a storyboard, in which I have a GLKView. It does not have Enable setNeedsDisplay checked.
The prototype cell has a custom class called…

Mark Gilchrist
- 1,972
- 3
- 24
- 44
6
votes
1 answer
CoreImage: EAGLContext framebuffer or renderbuffer incorrectly configured
When I setup a GLKViewController/GLKView for drawing with CoreImage I sometimes get the notice in the title.
The setup looks like this:
_context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];
self.view.context =…

hlidotbe
- 888
- 2
- 9
- 17
4
votes
3 answers
What can be the solution of a deprecated of "EAGLContext"?
I want to use the native filters for my app, the function works but I want to avoid methods that will be removed from the documentation. I search over the whole internet and no solution.
I search over the whole internet and i haven't found any…

Robby
- 197
- 1
- 2
- 14
4
votes
1 answer
Opengl Renderbuffer Texture touchmove ios issue
I am using OpenGL and using an example of GLPaint. I have created an app which applies twirl on image (texture) when the user touches the image. I have an issue that I need to save first touch and then apply next phase and so on. But on next touch…

Rahul Dadhich
- 1,213
- 19
- 32
4
votes
0 answers
EAGLContextView renderbufferstorage:fromDrawable: failing frequently on ios8
The documentation does not list out the possible reasons for failure. It would be great if I can get any of the following
Reasons for failure
Replacement for the API using glRenderBufferStorage.

Pavan
- 133
- 1
- 5
3
votes
0 answers
Rendering into a samplebuffer via cicontext with alpha blending?
in captureOutput I am getting video frames in sample buffers and I want to alpha blend another CIImage on top of the captured frames. Rendering should directly go into the passed sample buffer. Currently I use this:
func captureOutput(_…

Chris
- 1,231
- 2
- 10
- 20
3
votes
1 answer
EAGLContext, EAGLSharegroups, RenderBuffers, FrameBuffers, oh my!
I'm trying to wrap my head around the OpenGL object model on iPhone OS. I'm currently rendering into a few different UIViews (build on CAEAGLayers) on the screen. I currently have each of these as using separate EAGLContext, each of which has a…

Ben Zotto
- 70,108
- 23
- 141
- 204
3
votes
0 answers
iOS EAGLContext presentRenderBuffer blocks
I am observing that on iOS 8 sometimes my application blocks at startup (_semwait_signal) while calling [_oglContext presentRenderbuffer:GL_RENDERBUFFER] and it clears up after a few seconds, especially on older devices like iPhone 4S. Need to…

Deepak Sharma
- 5,577
- 7
- 55
- 131
3
votes
2 answers
Cost of switching between many EAGLContexts?
I’m working on some code that has a grid view (~20 child views on screen at once). Each child view draws its content in GL, and has its own drawing thread and EAGLContext.
The advantage of this is that each view is relatively insulated from other GL…

David Cairns
- 603
- 5
- 18
3
votes
1 answer
EAGLContext with Core Image Filters
I want to add images to a camera video feed in real time, but there is only need to display them, no need to save. If I use standard Core Image procedure it works fine but I need more frame rate. But if I uncomment this code and comment next it…

Carlos Pastor
- 531
- 1
- 4
- 18
2
votes
2 answers
EAGLContext presentRenderbuffer on second thread?
I'm porting my game engine to iOS and am running in to an exception at my [EAGLContext presentRenderbuffer:] call. My engine has all rendering code on a separate thread to the main one; the engine works by creating the CAEAGLLayer and EAGLContext on…

Rajveer
- 847
- 11
- 28
2
votes
0 answers
EAGLContext currentContext is nil after a modal view is unwinded
This isn't really a problem since I know how to solve it, but something I'm just curious about. Below I have a screenshot of my storyboard. It's fairly simple, it initially loads a main menu, which has a button that loads a UIView via a modal segue.…

Devin
- 870
- 9
- 20
1
vote
0 answers
Multiple GLES contexts, one framebuffer (iOS)
I'm doing an iOS app where I have a black box rendering library that has its own EAGLContext and framebuffer and does it's own rendering. I also need to do additional rendering outside the black box lib.
Up until now I've been doing that by…

Simplex
- 930
- 1
- 9
- 20