I actually tried calling it in onDrawFrame, and that yields a slightly different error:
12-03 10:47:23.282: E/SurfaceTexture(2753): [unnamed-2753-0] updateTexImage: error binding external texture image 0x9046042f (slot 5): 0x502 12-03 10:47:23.342: W/dalvikvm(2753): threadid=11: thread exiting with uncaught exception (group=0x41aac930) 12-03 10:47:23.342: E/AndroidRuntime(2753): FATAL EXCEPTION: GLThread 228 12-03 10:47:23.342: E/AndroidRuntime(2753): java.lang.RuntimeException: Error during updateTexImage (see logcat for details) 12-03 10:47:23.342: E/AndroidRuntime(2753): at android.graphics.SurfaceTexture.nativeUpdateTexImage(Native Method) 12-03 10:47:23.342: E/AndroidRuntime(2753): at android.graphics.SurfaceTexture.updateTexImage(SurfaceTexture.java:162) 12-03 10:47:23.342: E/AndroidRuntime(2753): at com.example.android.basicglsurfaceview.GLES20TriangleRenderer.onDrawFrame(GLES20TriangleRenderer.java:56) 12-03 10:47:23.342: E/AndroidRuntime(2753): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1516) 12-03 10:47:23.342: E/AndroidRuntime(2753): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240) On Monday, December 3, 2012 2:33:37 AM UTC-6, Fabien R wrote: > > On 30/11/2012 21:13, bob wrote: > > I've been baffling my brain with this some more. > > > > I suspect the solution to the problem lies in this text. > > > > /** > > * Update the texture image to the most recent frame from the image > > stream. This may only be > > * called while the OpenGL ES context that owns the texture is > current > > on the calling thread. > > * It will implicitly bind its texture to the > GL_TEXTURE_EXTERNAL_OES > > texture target. > > */ > > public void updateTexImage() { > > nativeUpdateTexImage(); > > } > > > > > > I suspect the key is figuring out what "while the OpenGL ES context that > > owns the texture is current on the calling thread" means. > > > > Anyone have some Advil and a Babel fish? > > > You may call it in OnDrawFrame(). > - > Fabien > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en