hi, I have two jPCT-AE activity, activity A starts activity B, after back from B to A, some objects
and textures of activity A lost, not show on the screen, what's the problem here ? thanks.
=========== renderer resume code =================
public void onSurfaceChanged(GL10 gl, int width, int height) {
// TODO Auto-generated method stub
if (fb == null) {
Logger.log("==== Launcher launch: " +width+"X" +height);
fb = new FrameBuffer(gl, width, height);
mLauncher.tearDown();
mLauncher.setup();
mLauncher.setFrameBuffer(fb);
mLauncher.setFrameBlitter(new AndroidFrameBlitter(fb));
}else{
fb.dispose();
fb = new FrameBuffer(gl, width, height);
mLauncher.setFrameBuffer(fb);
mLauncher.setFrameBlitter(new AndroidFrameBlitter(fb));
}
}
ps: activity B starts a normal android ui activity C , and when back from C to B, the objects and texture is ok.
the renderer code is similar.