Android GLSurfaceView glTexImage2D glDrawTexiOES

Posted by Cinar on Stack Overflow See other posts from Stack Overflow or by Cinar
Published on 2010-05-03T21:42:52Z Indexed on 2010/05/03 21:48 UTC
Read the original article Hit count: 1135

I'm trying to render a 640x480 RGB565 image using OpenGL ES on Android using GLSurfaceView and Native C code.

Initially I had a 0x0501 error with glTexImage2D, which I was able to resolve by changing the image dimensions.

But now, in the "drawFrame" call, when I do glDrawTexiOES to resnder the texture, I'm getting the following error on the Logs:

drawtex.c:89: DrawTexture: No textures enabled

I'm already doing glEnable(GL_TEXTURE_2D), is there anything else I should do?

Is there a complete example showing GLSurfaceView with native code using textures?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about android

Related posts about android-ndk