[android-developers] Re: OpenGL texture corrupted when there's an interruption.

2009-08-11 Thread alucard20004
Hi. Thank you for your reply. Actually I've done as you suggested. Here's my full onSurfaceCreated() and my activity's onPause(): public void onSurfaceCreated(GL10 gl, EGLConfig config) { frontTextureId = loadTexture(gl, frontTextureBitmap); gl.glEnable(GL10.GL_TEXTURE_2D);

[android-developers] Re: OpenGL texture corrupted when there's an interruption.

2009-08-10 Thread Dmitry.Skiba
I don't see gl.glEnableClientState(GL10.{GL_VERTEX_ARRAY, GL_TEXTURE_COORD_ARRAY}) in your code. Also don't forget to call GLSurfaceView's onPause() and onResume() methods (in corresponding Activity methods). Dmitry On Aug 11, 11:42 am, alucard20004 wrote: > I took the source from API demos (