We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Greetings:I installed the Mali simulator successfully (cube spins). Then I tried to run the OpenGL ES 3.0 Programming Guide sample code following instructions there. The steps I took and the problem/error is below. Any help appreciated.Thanks in advance,Sam
Open cmake gui. Set source code “opengles3-book-master” and build folder. Configure -> error -> set “libEGL.lib” and “libGLESv2.lib”. Configure + generate (now no error). Open build folder and open ES3_Book.sln with MSVS. Make Hello_Triangle startup project. Build (all 21 succeed, 0 fail). UP TO HERE IT’S FINE. PROBLEM NEXT STEP Debug: a window (where the triangle should be drawn) pops up for a second and then dies. Error:
It fails on line 213:
if (!Init(esContext)) { return GL_FALSE}
At that moment esContext.egNativeDisplay is NULL
Hi samg,
I looks like Mali Emulator is working. What you seem to have is a problem in OpenGL ES 3.0 Programming Guide samples. We don't support that.
I did however look quickly into the code and it seems like esContext.eglNativeDisplay is not defined for win32. I am assuming you are running these samples on Windows. If would add
esContext->eglNativeDisplay = EGL_DEFAULT_DISPLAY;
Before line 213 in Hello_Triangle.c and see if that works.
HTH,
Wasim
Thanks a lot, Wasim.
I am going to try this on Mon. (not at work now) and let you know.
Regards,
Sam