We don’t link to it as that would be indeed problematic. All OpenGL functions are pointers declared by ENUM_GL_ENTRYPOINTS_ALL macro (see OpenGLLinux.h/.cpp) and are acquired via SDL_GL_GetProcAddress() after SDL has loaded (via dlopen()) the correct libGL.so.
When crosscompile X86_Linux on windows how does the OpenGLdrv module link the openGL dynamic library
when I try to modifiy the OpenGLDrv module int the OpenGLLinux.h and openGLLinux.cpp for using openGLES in Linux,no compile error ,but lots of undefine reference to OpenglES function,
when I did not modify the OpenGLLinux.h and openGLLinux.cpp,the compile and link success.
so I am curious about how did OpenGLDrv module find the OpenGL library,such as libGL.so,I found no libGL.so in the project.
Ok,Thanks!