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 properly yet.


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to