i'm trying to render a simple square on screen, for some reason sometimes it looks ok. and sometimes it doesn't.
and here are examples of it looking weird:
the strange thing is that when i click the recent apps button, the activity's onPause get called, which calls the GlSurfaceView's onPause method.. and when i return to the app it calls onResume as expected. and everytime i go out and in again, the graphic looks different..
i've read another question here that seem to be relevant - Here but according to that, the problem is that when returning to the app, the openGl context was lost and everything needs to be restarted - textures and such.. but in my code i do all that in the onSurfaceCreated method, which is called when the app resumes, i also tried to update the Context variable inside the Renderer class, but still no good results.. any tips/advice?