LibGDX - OpenGL Exception on android caused by Texture -
i experiencing strange problem libgdx, when want run android apptication. running on samsung galaxy sii.
here main part
package com.android.app; import com.badlogic.gdx.game; import com.badlogic.gdx.gdx; import com.badlogic.gdx.graphics.g2d.textureatlas; public class app extends game{ private static textureatlas atlas; @override public void create() { new texture(gdx.files.internal("assets/textures1.png")); } }
here android part
package com.android.app; import com.badlogic.gdx.backends.android.androidapplication; public class androidapp extends androidapplication { public void oncreate (android.os.bundle savedinstancestate) { super.oncreate(savedinstancestate); initialize(new app(), true); //it crasher if opengl-es 2.0 not used } }
i'll error
opengl 2.0 not used
thread [<12> glthread] (suspended (exception gdxruntimeexception)) glsurfaceviewcupcake$glthread.run() line: 650
opengl 2.0 used
thread [<9> glthread 10] (suspended (exception gdxruntimeexception)) glsurfaceview$glthread.run() line: 1142
thank
i changed
new texture(gdx.files.internal("assets/textures1.png"));
to
new texture(gdx.files.internal("textures1.png"));
Comments
Post a Comment