Re: [android-developers] Bug in GLSurfaceView.RENDERMODE_WHEN_DIRTY (and work-around)

2009-11-24 Thread Dianne Hackborn
Reply from one of our graphics engineers: Thanks for the thorough bug report and analysis and suggested work-around! For what it's worth, this portion of GLSurfaceView has been rewritten for a post-2.0 version of Android. The new version uses a single wait() loop for all the different reasons

[android-developers] Bug in GLSurfaceView.RENDERMODE_WHEN_DIRTY (and work-around)

2009-11-21 Thread tomei.ninge...@gmail.com
My OpenGL app animates only every now and then, so I decided to use RENDERMODE_WHEN_DIRTY to save some battery life. However, I found that when I go to Home Screen and return to my app, I often get a black screen, and I see this in logcat: E/SurfaceComposerClient( 6055): using an invalid surface