glDrawTex is not working with setEGLContextClientVersion(2)

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

glDrawTex is not working with setEGLContextClientVersion(2)

Postby xgouchet » Mon Nov 14, 2011 1:37 pm

Hello world,

I'm having a problem with my OpenGL app. I started working on 2D rendering, using glDrawTexfOes, and it worked perfectly. But by the time, I was still using OpenGL ES 1.1.

Then I started working with 3D meshes and shaders, so I needed to use th setEGLContextClientVersion(2), but after that, my 2D textures wouldn't render anymore. I don't get any error, just my textures are not drawn. When I comment the line setEGLContextClientVersion(2); they are rendered again.

Is there something I'm missing ?
xgouchet
Freshman
Freshman
 
Posts: 2
Joined: Mon Nov 14, 2011 1:27 pm

Top

Re: glDrawTex is not working with setEGLContextClientVersion

Postby xgouchet » Mon Nov 14, 2011 2:48 pm

Ok half answer,

it seems (on my phone anyway) that the GL_OES_draw_texture extension is not loaded when I use setEGLContextClientVersion(2), so this explains why the line doesn't work.

I guess it's because it uses a fixed render pipeline that it is not loaded. Is there a way to force the use of the GL_OES_draw_texture extension ?
xgouchet
Freshman
Freshman
 
Posts: 2
Joined: Mon Nov 14, 2011 1:27 pm

Top

Return to Android 2D/3D Graphics - OpenGL Tutorials

Who is online

Users browsing this forum: Google Feedfetcher, Yahoo [Bot] and 4 guests