Re: [fpc-pascal] glGetString crash

2018-02-18 Thread Ryan Joseph
Maybe SDL has a bug then because glGetString should never crash. When are the land Load_GL_VERSION_XXX functions meant to be called in the pipeline? I was calling them before the openGL context is created (which works except for 3.x on the old MacBook) but I just tried calling Load_GL_VERSION_3

Re: [fpc-pascal] glGetString crash

2018-02-18 Thread Jonas Maebe
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_extende

Re: [fpc-pascal] Python interaction... how?

2018-02-18 Thread Michael Van Canneyt
On Sat, 17 Feb 2018, Darius Blaszyk wrote: Thanks for the tips and hints! I found this page also explaining well on how to embed python bi-directionally in FPC. https://docs.python.org/3.4/extending/embedding.html The P4D code was very helpful as well. I stripped all the object and component