I'd like to add that both the emulator and the G1's GL instances are GL11, but the automatic generation works correctly in the emulator but not on the G1...
What can I do to test a GL context to see if it will do this correctly? I'm a little surprised by this partial GL11 implementation, if it's got any GL11 at all. Why isn't it just an instance of GL10? On Sep 10, 1:46 pm, Robert Green <[email protected]> wrote: > I've finally got around to mipmapping a bunch of my textures and > decided to make a fail-safe for GL10/GL11. My code manually generates > mipmaps if the GL instance is only GL10, but if it's GL11, it sets > gl.glTexParameterf(GL11.GL_TEXTURE_2D, GL11.GL_GENERATE_MIPMAP, > GL11.GL_TRUE); > > The next line I use is: > > GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0); > > but I only get white textures. Isn't that all I need to do for the > generate mipmaps call? Also, if a GL is an instance of GL11, doesn't > that mean that it should fully support OpenGL ES 1.1? > > I've written everything for OGLES 1.0, but I'm just getting confused > because the GL context I get on my G1 is an instance of GL11, yet this > doesn't appear to work correctly. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

