How to render GL_TEXTURE_EXTERNAL_OES?

Hello! I’m checking the samples about EGLStream prducer/consumer in:

/usr/src/nvidia/graphics_demos

And I’m trying to make this in an easier example based on OpenGL ES Programming Guide. Here is my consumer code, but I think it won’t be necessary.

I think I’m doing the same that eglstreamcube.c, but I can’t render GL_TEXTURE_EXTERNAL_OES. I also checked a similar question on Stackoverflow: How to render to a GL_TEXTURE_EXTERNAL_OES?. But it’s not clear for me the way in which I can do this.