I have been advised against using immediate calls in opengl so I am trying to move over to vertex arrays. Whenever I run my program I get this error when it tries to read glBindVertexArray: "Unhandled exception at 0x7540CB49 in TestOpenGL.exe: 0xC0000005: Access violation executing location 0x00000000."
Why is it giving me this error?