OpenGL ES 2.0 not showing up on Android 4.0.3

I am writing a completely native OpenGL ES 2.0 engine for Android. I previously developed with Samsung Galaxy S (Android 2.3.3) and now with Samsung Galaxy S II (upgraded to Android 4.0.3). I have not tried the engine on the Galaxy S II, while it still had Android 2.3.3 (hardware problem?).

Now the engine works and works fine on Android 2.3.3 (tested on Galaxy S), but it does not appear on Android 4.0.3 (tested on Galaxy S II). The problem is similar to the following: OpenGL Renderer does not work on an ice cream sandwich

Everything else works without problems on 4.0.3, except for rendering, nothing is displayed on the screen. I managed to render one triangle in 4.0.3, but vertices extracted from the model will not be displayed (using glDrawElements ()) with or without textures.

I hope there is a simple solution for this.
Greetings

+3
source share
1 answer

I should have checked for GL errors before. The problem came up with help glDrawElements()where I used GL_UNSIGNED_INT( GL_UNSIGNED_BYTEand GL_UNSIGNED_SHORT- only valid values). Android 2.3.3 did not seem to care about this. I changed it to GL_UNSIGNED_SHORT, and now it works great.

+4
source

All Articles