glVertexAttribFormat fails with access violation

0

I have sources of some game. When I run this game it fails on function glVertexAttribFormat with error "Exception thrown at 0x00000000 in CSC3222.exe: 0xC0000005: Access violation executing location 0x00000000.".

With the help of the users of this site, I have found that this function was not loaded. This function is actually is function pointer and its value is null.

Why it is not loaded? How I can fix this problem?

I use glad loader.

OS: Windows 8.1 OpenGL version: 4.2

opengl
asked on Stack Overflow Mar 27, 2019 by Andrey Epifantsev • edited Mar 27, 2019 by Andrey Epifantsev

1 Answer

0

Sorry, I did not notice it earlier in my comment, but glVertexAttribFormat is OpenGL 4.3+ function link, so you need to use glad loader with that or higher version. It can be generated here glad

answered on Stack Overflow Mar 27, 2019 by Quimby

User contributions licensed under CC BY-SA 3.0