Skip to content Skip to sidebar Skip to footer

Libgdx Android Blackscreens At A Certain Screen

To explain the Situation: I've got a LibGDX Game runnig without Problems as Desktop Project... But as soon as I install the App onto my Android device, It only shows the first scre

Solution 1:

Use the OpenGL Tracer to get more information about what is going on: http://developer.android.com/tools/help/gltracer.html. Also: OpenGL debugging

The tracer tool requires that you're running on a recent Android release (4.1 or better)

You can also programmatically invoke Gdx.gl.glGetError() sporadically in your code to see if any OpenGL commands are triggering an error. See When Should One Call glGetError?

You can query the OpenGL runtime for the largest supported texture dimension with

IntBuffer max = BufferUtils.newIntBuffer(16); // See http://lwjgl.org/forum/index.php?topic=1314.0;wap2
max.clear();
gl.glGetIntegerv(GL10.GL_MAX_TEXTURE_SIZE, max);
int maxTexDim = max.get(0);

In your case I suspect you'll get 4096 or 2048 back ...

Post a Comment for "Libgdx Android Blackscreens At A Certain Screen"