Why not take a look at the *BasicGLSurfaceView* sample and maybe use that 
as a template?

Thanks.


On Thursday, May 16, 2013 7:13:28 AM UTC-5, reaktor24 wrote:
>
> I am trying to fix my apps OpenGL context loss whe the home button is 
> pressed or when a call is received. How do I retreive the previous OpenGL 
> states?? I am using OpenGL ES 2 and make sure to reload all the textures 
> when a SurfaceCreated() is detected but it still isn't working. I assume I 
> have to reload my shaders in the SurfaceCreated() and do I have to recall 
> things like glViewport()?? Because all I am getting at the moment is a 
> black screen. My shaders were moved to where the textures are loaded (as 
> static objects) but unfortunately they don't work when I try to assign 
> matrix handles to the shaders. I get java io exception errors. Null pointer 
> exception etc. Will fixing this problem fix the overall context loss 
> issue?? Thanks for your help.

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to