Open GoogleCodeExporter opened 8 years ago
I've done some testing with and without the mGLSurfaceView.onPause() /
mGLSurfaceView.onResume() and found that including these lines can cause
problems.
After locking the screen (hangup button), then waking, the texture maps seem to
get scrambled (eg sprites show the wrong texture, or white boxes) sometimes
followed by a silent crash of the Activity (eg, no force close, Activity just
dies as if the back button were pressed). Removing the mGLSurfaceView.on* lines
resolves the problem.
I see this behavior on the Android 2.2 (and 1.6) emulator, using svn r105 of
cocos-android. Curiously, on a real device running Android 2.2 the texture
scrambling bug *always* occurs upon locking/unlocking the screen, irrespective
of explicitly setting the state of mGLSurfaceView. Anyone have any ideas why
this is happening ?
Original comment by AndrewJa...@gmail.com
on 19 Sep 2010 at 4:45
The symptoms described here are similar to those described in Issue 23. I
suspect it's the same bug.
Original comment by AndrewJa...@gmail.com
on 1 Oct 2010 at 11:11
Hi,
I have a white screen each time the application resume (multi-task).
Adding mGLSurfaceView.onPause(); and mGLSurfaceView.onResume(); do not change
anything.
I use an HTC desire 2.1
Is there an existing fix for this bug ?
Original comment by dringapp@gmail.com
on 20 Dec 2010 at 11:12
@dringapp
thats a normal openglsurface context loss.
all resources(textures,vbo) have to be reloaded in this case.
this should be handled by the engine. so a suggest you open a new issue.
Original comment by christop...@gmail.com
on 21 Dec 2010 at 2:40
Original issue reported on code.google.com by
christop...@gmail.com
on 6 Apr 2010 at 1:52