We are working on android9 to run opengl simple triangle .c application, if we remove the function android_createDisplaySurface() in the program we are getting bus error. if we add that function we will get undefined reference error. is there any alternative function to call displayWindow or else any file to be added.
error line is
egldisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
displayWindow = android_createDisplaySurface(g_FrameBufferID);