开发者

Texture will be lost when any interrupt happen

I detected the textures will be lo开发者_如何学编程st when any interrupt happen.

For exsample, i received a phone call and then back to the opengles activity. The textures i loaded will be lost.

How can i save these textures?

ps: These textures loaded on Native C.


The textures are being lost along with the context when onPause is called. It's difficult to catch because the context is recreated when onResume is called. You will need to recreate the textures.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜