[fpc-pascal] glGetString crash
jonas at freepascal.org
Sun Feb 18 18:41:49 CET 2018
On 18/02/18 02:59, Ryan Joseph wrote:
> I tried using a core OpenGL context on my old MacBook (2010) and got a crash from glGetString from the Pascal bindings (a legacy 2.x context doesn’t crash).
> I pulled out the related functions from glext.pp where it crashes in Load_GL_ARB_blend_func_extended from Load_GL_VERSION_3_3. It looks like the function pointer for glGetString wasn’t loaded but how could that be? I’m using SDL to load the context and I need to use glGetString in order to even return what the highest OpenGL version is on the system.
The crash is inside the glGetString function itself, so its pointer was
loaded properly. That function is trying to load data from a
null-pointer though, so maybe the OpenGL context was not initialised
More information about the fpc-pascal