how to run Opengl es 2.0 in imx51

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to run Opengl es 2.0 in imx51

973 Views
shriram
Contributor I

Hi All,

 

I'm trying to run opengl es 2.0 sample code on imx 51.i'm using the sample program which is given in the demo file(es20/lesson02_imx.c). 

i used EGL_DEFAULT_DISPLAY as a display argument .

then  it got iniialised using egl initialise.

But  while using function eglChooseconfig, it returns error "EGL not initialised".

Can anyone clarify? is anyone working on opengl es in the imx 51?

Tags (1)
0 Kudos
2 Replies

578 Views
shriram
Contributor I
yes, it returns EGL_TRUE.

Xianzhong Li said:

did your eglInitlizae return EGL_TRUE instead of EGL_NOT_INITIALIZED?

 

 

  •  display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
  •  eglInitialize(display, NULL, NULL);
  •  eglChooseconfig(display, NULL, &config, 1, &numConfigs);
0 Kudos

578 Views
XianzhongLi
NXP Employee
NXP Employee

did your eglInitlizae return EGL_TRUE instead of EGL_NOT_INITIALIZED?

 

  •  display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
  •  eglInitialize(display, NULL, NULL);
  •  eglChooseconfig(display, NULL, &config, 1, &numConfigs);
0 Kudos