I can successfully create 2 rectangles using 2 differents textures from inside onSurfaceCreated() (or a method called by onSurfaceCreated() ). They display OK.
In a Menu, I have added (for debug/learning) the creation of a 3th rectangle using a 3th texure.
Than : the OpenGL surface loose all textures and display 3 white rectangles.
I is not possible to call texImage2D(), eventuall glGenTextures() from outside onSurfaceCreated() ?
I can not upload texture at the begining, as they are dynamic (text)
Could you help me ? Thanks