[fpc-pascal] glGetString crash
ryan at thealchemistguild.com
Tue Feb 20 02:47:25 CET 2018
> On Feb 20, 2018, at 4:24 AM, Jonas Maebe <jonas at freepascal.org> wrote:
> My guess is that the Load_GL_VERSION_3_3x() function is broken since it appears to call glGetString before a context has been created, and that it just happens to work on some (most?) implementations by pure chance.
After a context is created Load_GL_VERSION_3_3 returns false on my 2015 MacBook Pro. Load_GL_VERSION_3_2 returns true but glGetError returns GL_INVALID_ENUM directly after calling it. My system has all extensions for 3.3 so that function is indeed broken.
I guess the fix for now is to use Load_GL_VERSION_3_2 and call glGetError to clear the error which is erroneous it appears.
More information about the fpc-pascal