Hi,
I just met a issue of glGenTextures. I wrote the below codes on
Activity.onCreate() function
int[] mTextureNames = new int[1];
GLES20.glGenTextures(1,mTextureNames,0);
SurfaceTexture mSurfaceTexture = new
SurfaceTexture(mTextureNames[0]);
but mTextureNames[0] is always 0 and got the log "call to OpenGL ES API
with no current context (logged once per thread)". I think i may need to
do some initialization work before calling the source code. Would someone
help to tell me what's the steps ? Thanks a lot!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en