我对三星 s5360 和使用 textureatlas 有疑问。
我的项目使用的是 libgdx 框架,我通过 textureatlas 加载纹理:
atlas = new TextureAtlas( Gdx.files.internal( "res-atlases/pages-info" ) );
当我在 htc mytouch、htc one v 和 huawei 中运行它时,一切正常。但是当我在三星 s5360 中运行它时,我收到一个错误:
E/(2288): RTOS COMMON MEM zero linear buffer allocated 5603328 0 205
E/(2288): BIG MEM OUT OF HANDLES
08-17 15:02:36.867: E/AndroidRuntime(2288): java.lang.RuntimeException: OpenGL error code while loading texture: 1285 - textureFileHandle
08-17 15:02:36.867: E/AndroidRuntime(2288): at com.p666.services.AtlasManager.newTextureAtlas(AtlasManager.java:50)
08-17 15:02:36.867: E/AndroidRuntime(2288): at com.p666.screens.AbstractScreen.<init>(AbstractScreen.java:100)
08-17 15:02:36.867: E/AndroidRuntime(2288): at com.p666.gamelogic.GameControl.create(GameControl.java:135)
08-17 15:02:36.867: E/AndroidRuntime(2288): at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:292)
08-17 15:02:36.867: E/AndroidRuntime(2288): at com.badlogic.gdx.backends.android.surfaceview.GLSurfaceViewCupcake$GLThread.guardedRun(GLSurfaceViewCupcake.java:708)
08-17 15:02:36.867: E/AndroidRuntime(2288): at com.badlogic.gdx.backends.android.surfaceview.GLSurfaceViewCupcake$GLThread.run(GLSurfaceViewCupcake.java:646)
纹理和字体以白色显示。我该如何解决?谢谢 :)