Author Topic: Activity switching  (Read 5325 times)

Offline dl.zerocool

  • long
  • ***
  • Posts: 104
    • View Profile
Activity switching
« on: April 30, 2010, 12:08:09 am »
Hi,

Well I'm confronting a problem but I'm unsure from where it comes.
I pass few hours checking around my code and found nothing yet.

So I wanted to know if you are encountering the same problem as me.

If you run engine, add objects etc.. then push the HOME button,
then with multi task selection return back to game are you models and textures still there ?

When I do this, I loose all my models and textures.

Thank you in advance for help, if don't come from JPCT I'll work harder to find what's wrong on my side.

Best regards.

Offline zammbi

  • float
  • ****
  • Posts: 361
    • View Profile
Re: Activity switching
« Reply #1 on: April 30, 2010, 07:19:38 am »
I didn't have this problem with the demos on the Milestone.

Offline raft

  • quad
  • ******
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
Re: Activity switching
« Reply #2 on: April 30, 2010, 01:00:13 pm »
maybe GL surface is re-created ? docs says, on such cases GL context is lost, for example textures..

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Activity switching
« Reply #3 on: April 30, 2010, 08:03:13 pm »
Yes, that's most likely the problem. My demos try to handle this by resetting everything and loading it from scratch, which might be reason why they are not showing the problem.

Offline dl.zerocool

  • long
  • ***
  • Posts: 104
    • View Profile
Re: Activity switching
« Reply #4 on: May 05, 2010, 10:00:49 am »
Hello,

Opengl context is definitely lost, you were true!


Thank you, so I reload the models each time now :P