views:

165

answers:

1

Hello,

I am doing some work which involves drawing video frames in real time in OpenGL ES. Right now I am using glTexImage2D to transfer the data, in the absence of Pixel Buffer Objects and the like. A below answer suggests that glTexImage2D is always blocking, even if texture object referenced does is not used for any drawing. Is there a way to do a nonblocking texture upload with OpenGL ES (any version)?

Thank you very much, Sean

A: 

No, glTexImage2D blocks, and will not return until the copy is complete.

I'm not sure if GL ES supports context sharing, if it does, you can upload the texture in another thread with another context, sharig that texture with your main context.

Matias Valdenegro