Android: added some more logging to the surface creation

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7888 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
kim..ng 14 years ago
parent e911e3299e
commit bb2d1073de
  1. 5
      engine/src/android/com/jme3/system/android/AndroidConfigChooser.java
  2. 3
      engine/src/android/com/jme3/system/android/OGLESContext.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];

@ -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);
}

Loading…
Cancel
Save