[fpc-pascal] GLPT v0.1.1 released

Anthony Walter sysrpl at gmail.com
Fri Oct 12 05:39:11 CEST 2018


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20181011/25429b9e/attachment.html>


More information about the fpc-pascal mailing list