Android 4 versus 7 compatibility

hi i’m porting my simple videogame based of open gl es 2 in a different smartphone (galaxy j7):
it works fine with Galaxy note 2 (open gl es 2 and android 4.2) , bad in Galaxy j7 (open gl es 3.1 and android 7)
when I draw two geometries 3D one above the other something goes wrong

I’ve posted the bad effect in this video youtube (look for with google)

while this is a screeshot about note2 in

i use the code
glView = new GLSurfaceView(this);

   and every 30 mills I call glView.requestRender() 

Perhaps in android 7 rendermode_with_dirty doesn’t work? or different settings/instruction open gl are needed?

1)in the draw method of the game loop
GLES20.glClearColor(0, 0, 0, 1);
(draw goemetries)

2)for each geometry 3d I do

(load program -shader etc - etc…)

Could be a face culling issue.

For the problem mesh(es), is it possible that on the J7 you are rendering with backface culling enabled sometimes but not always (GL_CULL_FACE)?

Alternatively, is it possible that you don’t always have the front face set consistently (glFrontFace) when rendering the problem mesh(es)?

thanks! But I’ve explained better my problem. I’ve corrected my post

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.