private static int eglGetConfigAttribSafe(EGL10 egl, EGLDisplay display, EGLConfig config, int attribute) {
        int[] value = new int[1];
        if (!egl.eglGetConfigAttrib(display, config, attribute, value)) {
            RendererUtil.checkEGLError(egl);
            throw new AssertionError();
        }
        return value[0];
    }
Query egl for the available configs
@param egl
@param display
@return
jme3-android/src/main/java/com/jme3/system/android/AndroidConfigChooser.java