Regarding the RTL OpenGL unit working, that is because it assumes the CORE profile is the only OpenGL library. If you request an ES profile, those libraries are no longer valid.
In SDL: SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES); Which may link to any of: libGLESv2.so libGLESv1_CM.so libGL.so It's up to the toolkit to choose the correct OpenGL library based on the context type requested. The is what SDL_GL_GetProcAddress is abstracting.
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal