diff --git a/engine/src/android/com/jme3/system/android/AndroidConfigChooser.java b/engine/src/android/com/jme3/system/android/AndroidConfigChooser.java index 57f6faba6..82603f57e 100644 --- a/engine/src/android/com/jme3/system/android/AndroidConfigChooser.java +++ b/engine/src/android/com/jme3/system/android/AndroidConfigChooser.java @@ -59,6 +59,8 @@ public class AndroidConfigChooser implements EGLConfigChooser @Override public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) { + logger.info("GLSurfaceView asks for egl config, returning: "); + logEGLConfig(choosenConfig, display, egl); return choosenConfig; } @@ -164,6 +166,7 @@ public class AndroidConfigChooser implements EGLConfigChooser if (choosenConfig != null) { + logger.info("JME3 using choosen config: "); logEGLConfig(choosenConfig, display, egl); pixelFormat = getPixelFormat(choosenConfig, display, egl); clientOpenGLESVersion = getOpenGLVersion(choosenConfig, display, egl); @@ -369,7 +372,7 @@ public class AndroidConfigChooser implements EGLConfigChooser * @param display * @param egl */ - private void logEGLConfig(EGLConfig conf, EGLDisplay display, EGL10 egl) + public void logEGLConfig(EGLConfig conf, EGLDisplay display, EGL10 egl) { int[] value = new int[1]; diff --git a/engine/src/android/com/jme3/system/android/OGLESContext.java b/engine/src/android/com/jme3/system/android/OGLESContext.java index 89839fbd2..146e23ef3 100644 --- a/engine/src/android/com/jme3/system/android/OGLESContext.java +++ b/engine/src/android/com/jme3/system/android/OGLESContext.java @@ -210,7 +210,7 @@ public class OGLESContext implements JmeContext, GLSurfaceView.Renderer { if (!created.get()) { - logger.info("GL Surface created"); + logger.info("GL Surface created, doing JME3 init"); initInThread(); } else @@ -385,6 +385,7 @@ public class OGLESContext implements JmeContext, GLSurfaceView.Renderer @Override public void onSurfaceChanged(GL10 gl, int width, int height) { + logger.info("GL Surface changed, width: " + width + " height: " + height); settings.setResolution(width, height); listener.reshape(width, height); }