I fiddled with a bunch of approaches for binding.  The current code looks 
like this:

int[] textures = new int[1];
GLES20.glGenTextures(1, textures, 0);
mTextureID = textures[0];
GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, mTextureID);

GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER,
                GLES20.GL_NEAREST);
GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D,
                GLES20.GL_TEXTURE_MAG_FILTER,
                GLES20.GL_LINEAR);
GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_S,
                GLES20.GL_REPEAT);
GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_T,
                GLES20.GL_REPEAT);

Statics.st = new SurfaceTexture(textures[0]);



On Tuesday, December 4, 2012 3:08:16 AM UTC-6, Fabien R wrote:
>
> On 03/12/2012 17:50, bob wrote: 
> >   
> > 
> > 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 
> >   
> How did you bind your texture ? 
> - 
> Fabien 
>

-- 
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

Reply via email to