andengine lwp扩展问题

时间:2013-11-06 08:53:12

标签: android opengl-es andengine live-wallpaper

在andengine lwp扩展中,在旋转设备或从应用程序返回主屏幕时,纹理重新加载存在问题。由于纹理重新加载,它需要一些时间(约0.5秒)才能恢复到正常视图,并且在图像被拉伸之前。这是因为每次调用onResume()时都会重新加载纹理。我试图避免它,并且仅在从预览模式和副verca切换时调用重新加载。但现在我有一些纹理重新加载的错误。更好,我会在截图上显示它。

正常

enter image description here

错误

enter image description here

当bug发生时,这是来自logcat的:

11-06 14:49:09.462: E/SurfaceTexture(91): [ru.sergey.abadzhev.nlwlwp.WallpaperActivity] query: SurfaceTexture has been abandoned!

11-06 14:49:09.462: E/SurfaceTexture(91): [ru.sergey.abadzhev.nlwlwp.WallpaperActivity] query: SurfaceTexture has been abandoned!

11-06 14:49:09.462: E/SurfaceTexture(91): [ru.sergey.abadzhev.nlwlwp.WallpaperActivity] queueBuffer: SurfaceTexture has been abandoned!

11-06 14:49:09.462: E/SurfaceTextureClient(3941): queueBuffer: error queuing buffer to SurfaceTexture, -19

11-06 14:49:09.462: E/(3941): void __egl_platform_queue_buffer(mali_base_ctx_type*, egl_buffer*):845 [EGL-ERROR] unable to queue buffer (0x1c266bc)

任何想法会发生什么?或者可能有人会如此伟大并且分享lwp扩展而没有错误并在旋转设备上重新加载纹理。

0 个答案:

没有答案