Hello.
I am developing a games for android. There is a device Samsung Galaxy S3 with gpu Mali-400MP, android version 4.3. I have a problem when rendering buffer in parts. I wrote a test application to demonstrate the problem.
First I created a vertex buffer and fill them with random values. Then created an index buffer with random values, but within the number of vertices.
If draw the entire buffer, then all is well.
GLES20.glDrawElements(GLES20.GL_TRIANGLES, ICOUNT, GLES20.GL_UNSIGNED_SHORT, 0);
But if I try to draw one triangle, application fail at random iteration.
private int i_offset = 0;
...
GLES20.glDrawElements(GLES20.GL_TRIANGLES, 3, GLES20.GL_UNSIGNED_SHORT, i_offset*2);
i_offset += 3;
if((i_offset + 3) > ICOUNT) i_offset = 0;
What could be the problem? On the other gpu all drawn normally.
Chris, thanks for help.
I want to clarify, after a reboot device the previous application for reproduce the error wont work. But I created a new application that shows the error.