Having issue with OpenGL 1.0 for HP slate 7

Posted by Roy Coder on Stack Overflow See other posts from Stack Overflow or by Roy Coder
Published on 2013-11-06T06:32:58Z Indexed on 2013/11/06 15:53 UTC
Read the original article Hit count: 248

Filed under:
|

I have issue with HP slate when i am trying to draw Line in OpenGL Draw method.

enter image description here

But working in other devices. enter image description here

In Hp Slate Green line not drawn properly as like in another device.

My Code is:

gl.glPushMatrix();
                gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
                gl.glVertexPointer(2, GL10.GL_FLOAT, 0, vertexFloatBuffer);
                gl.glColorMask(true, true, true, true);
                gl.glDepthMask(true);
gl.glLineWidth(8.0f);
setColor(gl);
                gl.glDrawArrays(GL10.GL_LINES, 0, fPoints.length / 2);
                gl.glDisableClientState(GL10.GL_VERTEX_ARRAY);
                gl.glPopMatrix();

Suggest me at which place i am wrong or missing something?

UpdateImage

enter image description here

© Stack Overflow or respective owner

Related posts about android

Related posts about opengl-es