After looking through the Cupcake source tree, I found that in projects / platform/frameworks/base.git / tree [platform/frameworks/base.git] / opengl / java / android / opengl /
It appears as though when I enable DEBUG_CHECK_GL_ERROR, GL gets wrapped with GLErrorWrapper which extends GLWrapperBase. GLWrapperBase throws the exception for everything. GLErrorWrapper overrides many of the functions but not the VBO stuff. How unfortunate. What's funny is that it looks like there are different sets of methods supported by GLErrorWrapper and GLLogWrapper. Either the developers never got around to syncing everything up or they just decided that those of us using any extensions beyond GL10 are to be totally unsupported. I keep arguing that Android can be competitive to iPhone with gaming but some days I just feel like it's an uphill battle... Guess I'll just manually check for glErrors in a few key spots. On Sep 12, 10:34 pm, Robert Green <[email protected]> wrote: > I'm confused by this. I turned on DEBUG_CHECK_GL_ERROR for my > GLSurfaceView to try to figure out why I'm having a problem on pause/ > resume/reload everything, and when I turned it on, I got an > UnsupportedOperationException when calling GL11.glGenBuffers() (for > creating Vertex Buffer Objects). > > Why is it saying that operation is unsupported when: > > 1) The vertex_buffer_object extension is listed on the target device > and my code checks for it before trying to use VBOs. > 2) VBOs are working correctly (and really well might I add). > > This is on a G1. Yes, I know the G1 is only OpenGL ES 1.0 compliant > and I'm trying to use a 1.1 extension, but if the phone lists the > extension, doesn't that mean I can use it? Also - the extension > works! Does this mean that it works but use-at-your-own-risk, kinda > like how SoundPool was in Android 1.0? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

