Home > Back-end >  Opengles loadShader failure, returns 0
Opengles loadShader failure, returns 0

Time:01-30

Opengles do younger brother recently in YUV data and then apply colours to a drawing, after cross compile, run on the board, the board before above is run through to opengles as the output of the underlying implementation of video application, so the environment should be no problem, then use own program run now, loadShader, this step is directly failed, then try to EGL processing first, the first step in EGL also failed, eglGetDisplay returns 0, so the auctions?

Opengles render reference code:
https://blog.csdn.net/wangchenggggdn/article/details/8896453

EGL process:
1, get the EGL Display objects: eglGetDisplay ()
2, the initialization and connection of EGLDisplay: eglInitialize ()
3, get EGLConfig objects: eglChooseConfig ()
4, create instances: EGLContext eglCreateContext ()
5, create instances: EGLSurface eglCreateWindowSurface ()
6, links EGLContext and EGLSurface: eglMakeCurrent ()
7, using the OpenGL ES API drawing graphics: gl_ * ()
8, switch the front buffer and the back buffer to send show: eglSwapBuffer ()
9, disconnect and release the associated with EGLSurface EGLContext object: eglRelease ()
10, delete EGLSurface object
11, delete EGLContext object
12, to terminate the connection between the EGLDisplay
  • Related