Comment 4 for bug 1307709

Revision history for this message
Stephen M. Webb (bregma) wrote :

I notice in that Oxide code that the result of "display = eglGetDisplay(EGL_DEFAULT_DISPLAY)" is not checked for failure and is then used in the call to "eglInitialize(display, NULL, NULL)" which goes on to fail because the display is invalid.

Basic fundamental error checking is missing in that code and it fails catastrophically as a consequence.

The code works on the phone where the "native" default display compiled in to the EGL library is Mir and it works on the desktop using an X11 server because the default display compiled in to the EGL library is X11. In the case of desktop without X11 like the Unity 8 preview session, it just fails. Forcing the default display through the use of environment variables does not seem to have any effect.

Note that this code can be bypassed by setting the environment variable OXIDE_FORCE_FORM_FACTOR=tablet (or phone, or desktop) but subsequent efforts to get an EGL surface also fail.