XTDStudios / DMT

Dynamically Mapping Textures
101 stars 13 forks source link

Handle lost context #9

Closed juanamd closed 8 years ago

juanamd commented 10 years ago

The thing goes as follows: When you are using 'cache = false' everything works fine when the conext is lost; it is restored perfectly afterwards. When you set 'cache=true' and have run the app a couple of times, so it is indeed using the cache, the textures are restored perfectly as well when the context is lost. The issue is when 'cache = true' and it's the first time the app is run (so the textures are being created). If the context is lost then, when its restored, the textures are not, so all display objects are now empty.

If you need further information, i'll gladly provide it

gilamran commented 10 years ago

Fixed long ago

jarkkosyrjala commented 10 years ago

This bug still seems to be there. Textures are lost only when application is started for the first time and cache is created. Next time application is started context loss is handled correctly.

gilamran commented 10 years ago

I thought that I already fixed it...

idanasher commented 8 years ago

I also encounter this bug. anyone has a solution or a workaround ?

gilamran commented 8 years ago

@idanasher please review this commit 2ea94d77e72a46fedf8857010d669f7f91765c2a, and let me know if it helps

gilamran commented 8 years ago

There was an issue that was just fixed.