I don't know why you are getting 0. But onSurfaceChanged is good place to create textures. Placing texture creation/loading code inside of onDrawFrame is bad idea.
On Aug 30, 12:24 pm, deki <[email protected]> wrote: > I am calling glGenTextures inside onDrawFrame and I am always getting > 0. > > Calling glGenTextures in onSurfaceCreated works fine. > > What's the problem? > > Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

