Monday, December 17, 2012

[android-developers] GL_REPEAT blues

Any ideas why this line would cause an error?

GLES20.glTexParameteri(GL_TEXTURE_EXTERNAL_OES,
GLES20.GL_TEXTURE_WRAP_S, GLES20.GL_REPEAT);

My video texture is getting clamped, but I want it to repeat for an effect.


The error this causes is weird:

12-17 10:22:44.075: E/GLES20TriangleRenderer(22300): glUseProgram: glError 1280
12-17 10:22:44.095: W/dalvikvm(22300): threadid=11: thread exiting with uncaught exception (group=0x40c2e930)
12-17 10:22:44.095: E/AndroidRuntime(22300): FATAL EXCEPTION: GLThread 780
12-17 10:22:44.095: E/AndroidRuntime(22300): java.lang.RuntimeException: glUseProgram: glError 1280
12-17 10:22:44.095: E/AndroidRuntime(22300): at com.example.android.basicglsurfaceview.GLES20TriangleRenderer.checkGlError(GLES20TriangleRenderer.java:324)
12-17 10:22:44.095: E/AndroidRuntime(22300): at com.example.android.basicglsurfaceview.GLES20TriangleRenderer.onDrawFrame(GLES20TriangleRenderer.java:74)
12-17 10:22:44.095: E/AndroidRuntime(22300): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1516)
12-17 10:22:44.095: E/AndroidRuntime(22300): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment