Re: [android-developers] how to play a video on an OpenGL texture

2012-12-04 Thread Fabien R
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 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


Re: [android-developers] how to play a video on an OpenGL texture

2012-12-04 Thread bob
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 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

Re: [android-developers] how to play a video on an OpenGL texture

2012-12-04 Thread RichardC
I don't think your bind texture call is correct see *bold* below:

*"The texture object uses the GL_TEXTURE_EXTERNAL_OES texture target, which 
is defined by the 
GL_OES_EGL_image_externalOpenGL
 ES extension. This limits how the texture may be used. Each time the 
texture is bound it must be bound to the GL_TEXTURE_EXTERNAL_OES target 
rather than the GL_TEXTURE_2D target. Additionally, any OpenGL ES 2.0 
shader that samples from the texture must declare its use of this extension 
using, for example, an "#extension GL_OES_EGL_image_external : require" 
directive. Such shaders must also access the texture using the 
samplerExternalOES GLSL sampler type."*
*
*
*From:
*http://developer.android.com/reference/android/graphics/SurfaceTexture.html


On Tuesday, December 4, 2012 3:13:06 PM UTC, bob wrote:
>
> 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 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

Re: [android-developers] how to play a video on an OpenGL texture

2012-12-05 Thread bob
Yes, you're right.

I had to change the bind calls to this:

GLES20.glBindTexture(GL_TEXTURE_EXTERNAL_OES, mTextureID);

Thanks.



On Tuesday, December 4, 2012 6:06:18 PM UTC-6, RichardC wrote:
>
> I don't think your bind texture call is correct see *bold* below:
>
> *"The texture object uses the GL_TEXTURE_EXTERNAL_OES texture target, 
> which is defined by the 
> GL_OES_EGL_image_externalOpenGL
>  ES extension. This limits how the texture may be used. Each time the 
> texture is bound it must be bound to the GL_TEXTURE_EXTERNAL_OES target 
> rather than the GL_TEXTURE_2D target. Additionally, any OpenGL ES 2.0 
> shader that samples from the texture must declare its use of this extension 
> using, for example, an "#extension GL_OES_EGL_image_external : require" 
> directive. Such shaders must also access the texture using the 
> samplerExternalOES GLSL sampler type."*
> *
> *
> *From:
> *
> http://developer.android.com/reference/android/graphics/SurfaceTexture.html
>
>
> On Tuesday, December 4, 2012 3:13:06 PM UTC, bob wrote:
>>
>> 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 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

Re: [android-developers] how to play a video on an OpenGL texture

2012-11-29 Thread Romain Guy
You must call updateTexImage() on SurfaceTexture when a new frame is
available (use an OnFrameAvailableListener to be notified.)


On Thu, Nov 29, 2012 at 11:39 AM, bob  wrote:

> Does anyone know how to play a video on an OpenGL texture?
>
> I tried something like this, but no dice:
>
> int[] textures = new int[1];
> GLES20.glGenTextures(1, textures, 0);
> SurfaceTexture st = new SurfaceTexture(textures[0]);
> Statics.mp.setSurface(new Surface(st));
>
>
>
> try {
>  Statics.mp.prepare();
> } catch (IllegalStateException e1) {
> // TODO Auto-generated catch block
>  e1.printStackTrace();
> } catch (IOException e1) {
> // TODO Auto-generated catch block
>  e1.printStackTrace();
> }
> Statics.mp.start();
>
>
>  --
> 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




-- 
Romain Guy
Android framework engineer
romain...@android.com

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

Re: [android-developers] how to play a video on an OpenGL texture

2012-11-29 Thread bob
I'm calling updateTexImage now, and I'm getting some weird error:

E/libEGL  ( 4995): validate_display:198 error 3008 (EGL_BAD_DISPLAY)
E/SurfaceTexture( 4995): [unnamed-4995-0] error creating EGLImage: 0x3008
D/AndroidRuntime( 4995): Shutting down VM
W/dalvikvm( 4995): threadid=1: thread exiting with uncaught exception 
(group=0x40c521f8)
E/AndroidRuntime( 4995): FATAL EXCEPTION: main
E/AndroidRuntime( 4995): java.lang.RuntimeException: Error during 
updateTexImage (see logs)
E/AndroidRuntime( 4995): at 
android.graphics.SurfaceTexture.updateTexImage(SurfaceTexture.java:164)
E/AndroidRuntime( 4995): at 
com.example.android.basicglsurfaceview.GLES20TriangleRenderer$1.onFrameAvailable(GLES20TriangleRenderer.java:137)
E/AndroidRuntime( 4995): at 
android.graphics.SurfaceTexture$EventHandler.handleMessage(SurfaceTexture.java:244)
E/AndroidRuntime( 4995): at 
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 4995): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 4995): at 
android.app.ActivityThread.main(ActivityThread.java:4507)
E/AndroidRuntime( 4995): at java.lang.reflect.Method.invokeNative(Native 
Method)
E/AndroidRuntime( 4995): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 4995): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:978)
E/AndroidRuntime( 4995): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:745)
E/AndroidRuntime( 4995): at dalvik.system.NativeStart.main(Native Method)

Any ideas?


On Thursday, November 29, 2012 1:49:55 PM UTC-6, Romain Guy (Google) wrote:
>
> You must call updateTexImage() on SurfaceTexture when a new frame is 
> available (use an OnFrameAvailableListener to be notified.)
>
>
> On Thu, Nov 29, 2012 at 11:39 AM, bob 
> > wrote:
>
>> Does anyone know how to play a video on an OpenGL texture?
>>
>> I tried something like this, but no dice:
>>
>> int[] textures = new int[1];
>> GLES20.glGenTextures(1, textures, 0);
>> SurfaceTexture st = new SurfaceTexture(textures[0]);
>> Statics.mp.setSurface(new Surface(st));
>> 
>> 
>> 
>> try {
>>  Statics.mp.prepare();
>> } catch (IllegalStateException e1) {
>> // TODO Auto-generated catch block
>>  e1.printStackTrace();
>> } catch (IOException e1) {
>> // TODO Auto-generated catch block
>>  e1.printStackTrace();
>> }
>> Statics.mp.start();
>> 
>>
>>  -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to 
>> android-d...@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
>
>
>
>
> -- 
> Romain Guy
> Android framework engineer
> roma...@android.com 
>
>  

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

Re: [android-developers] how to play a video on an OpenGL texture

2012-11-30 Thread bob
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?


On Thursday, November 29, 2012 2:50:15 PM UTC-6, bob wrote:
>
> I'm calling updateTexImage now, and I'm getting some weird error:
>
> E/libEGL  ( 4995): validate_display:198 error 3008 (EGL_BAD_DISPLAY)
> E/SurfaceTexture( 4995): [unnamed-4995-0] error creating EGLImage: 0x3008
> D/AndroidRuntime( 4995): Shutting down VM
> W/dalvikvm( 4995): threadid=1: thread exiting with uncaught exception 
> (group=0x40c521f8)
> E/AndroidRuntime( 4995): FATAL EXCEPTION: main
> E/AndroidRuntime( 4995): java.lang.RuntimeException: Error during 
> updateTexImage (see logs)
> E/AndroidRuntime( 4995): at 
> android.graphics.SurfaceTexture.updateTexImage(SurfaceTexture.java:164)
> E/AndroidRuntime( 4995): at 
> com.example.android.basicglsurfaceview.GLES20TriangleRenderer$1.onFrameAvailable(GLES20TriangleRenderer.java:137)
> E/AndroidRuntime( 4995): at 
> android.graphics.SurfaceTexture$EventHandler.handleMessage(SurfaceTexture.java:244)
> E/AndroidRuntime( 4995): at 
> android.os.Handler.dispatchMessage(Handler.java:99)
> E/AndroidRuntime( 4995): at android.os.Looper.loop(Looper.java:137)
> E/AndroidRuntime( 4995): at 
> android.app.ActivityThread.main(ActivityThread.java:4507)
> E/AndroidRuntime( 4995): at java.lang.reflect.Method.invokeNative(Native 
> Method)
> E/AndroidRuntime( 4995): at 
> java.lang.reflect.Method.invoke(Method.java:511)
> E/AndroidRuntime( 4995): at 
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:978)
> E/AndroidRuntime( 4995): at 
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:745)
> E/AndroidRuntime( 4995): at dalvik.system.NativeStart.main(Native Method)
>
> Any ideas?
>
>
> On Thursday, November 29, 2012 1:49:55 PM UTC-6, Romain Guy (Google) wrote:
>>
>> You must call updateTexImage() on SurfaceTexture when a new frame is 
>> available (use an OnFrameAvailableListener to be notified.)
>>
>>
>> On Thu, Nov 29, 2012 at 11:39 AM, bob  wrote:
>>
>>> Does anyone know how to play a video on an OpenGL texture?
>>>
>>> I tried something like this, but no dice:
>>>
>>> int[] textures = new int[1];
>>> GLES20.glGenTextures(1, textures, 0);
>>> SurfaceTexture st = new SurfaceTexture(textures[0]);
>>> Statics.mp.setSurface(new Surface(st));
>>> 
>>> 
>>> 
>>> try {
>>>  Statics.mp.prepare();
>>> } catch (IllegalStateException e1) {
>>> // TODO Auto-generated catch block
>>>  e1.printStackTrace();
>>> } catch (IOException e1) {
>>> // TODO Auto-generated catch block
>>>  e1.printStackTrace();
>>> }
>>> Statics.mp.start();
>>> 
>>>
>>>  -- 
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-d...@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
>>
>>
>>
>>
>> -- 
>> Romain Guy
>> Android framework engineer
>> roma...@android.com
>>
>>  

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

Re: [android-developers] how to play a video on an OpenGL texture

2012-12-03 Thread Fabien R
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


Re: [android-developers] how to play a video on an OpenGL texture

2012-12-03 Thread bob
 

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

Re: [android-developers] how to play a video on an OpenGL texture

2013-05-16 Thread Linda Li
Did you get any good result?
Could you share your code? Thanks in advance.
 
I am looking at it too. It seems there are a bunch of spaces to modify in 
order to let video output to an OpenGL texture.
 
Just a little wondering why Google doesn't publish an example, since it 
seems many people ask the same question from my searching result.

On Wednesday, December 5, 2012 9:58:04 AM UTC-6, bob wrote:

> Yes, you're right.
>
> I had to change the bind calls to this:
>
> GLES20.glBindTexture(GL_TEXTURE_EXTERNAL_OES, mTextureID);
>
> Thanks.
>
>
>
> On Tuesday, December 4, 2012 6:06:18 PM UTC-6, RichardC wrote: 
>>
>> I don't think your bind texture call is correct see *bold* below: 
>>
>> *"The texture object uses the GL_TEXTURE_EXTERNAL_OES texture target, 
>> which is defined by the 
>> GL_OES_EGL_image_externalOpenGL
>>  ES extension. This limits how the texture may be used. Each time the 
>> texture is bound it must be bound to the GL_TEXTURE_EXTERNAL_OES target 
>> rather than the GL_TEXTURE_2D target. Additionally, any OpenGL ES 2.0 
>> shader that samples from the texture must declare its use of this extension 
>> using, for example, an "#extension GL_OES_EGL_image_external : require" 
>> directive. Such shaders must also access the texture using the 
>> samplerExternalOES GLSL sampler type."*
>> *
>> *
>> *From:
>> *
>> http://developer.android.com/reference/android/graphics/SurfaceTexture.html
>>
>>
>> On Tuesday, December 4, 2012 3:13:06 PM UTC, bob wrote: 
>>>
>>> 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 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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.