Try moving glGenVertexArrays(1, &vao); glBindVertexArray(vao);at the top.
You're my new best friend, no, let's get married. Really though, thanks, this one's been eating at me a bit.
Try moving glGenVertexArrays(1, &vao); glBindVertexArray(vao);at the top.
You're my new best friend, no, let's get married. Really though, thanks, this one's been eating at me a bit.