Comment 0 for bug 1012827

Revision history for this message
miskol (xlazom00) wrote :

EGL work only with x server
I cant get Qt to work with FrameBuffer/EGL/OpenGL ES

How to reproduce:
1.stop X server
sudo service lightdm stop

2.compile test application you should get EGLDisplay but with current EGL we can't
all works fine with X server

#include <GLES2/gl2.h>
#include <EGL/egl.h>
#include <iostream>
using namespace std;

EGLDisplay egl_display;
EGLContext egl_context;

int main()
{
    egl_display = eglGetDisplay( EGL_DEFAULT_DISPLAY );
    if ( egl_display == EGL_NO_DISPLAY ) {
      cerr << "Got no EGL display." << endl;
      return 1;
    }
    else
    {
 cerr << "Got EGL display";
    }
    return 1;
}