Running hellogl_es2 on imx53 board:
./hellogl_es2 -display simplegl:rgb16 -qws
I am getting the following issue:
SimpleGLScreen: could not create the full-screen window
SimpleGLScreen: may need to modify defaultRootWindowHandle()
simplegl: driver cannot connect
Aborted
The current implementation of simplegl assumes that the native window id is zero. Has this changed? Has anyone observed this behavior?
已解决! 转到解答。
Solved:
It looks like I needed the
Patch based on L2.6.35_11_09_ER_SOURCE, to provide: GPU driver update.
Application note: AN3994 says the native window id should be the file descriptor returned from open("/dev/fb0"). But this has not worked on my platform.
eglCreateWindowSurface
(context->display(), context->config(),
open("/dev/fb0", O_RDWR, NULL), props.properties());