On Saturday, 23 November 2013 at 22:41:41 UTC, Mikko Ronkainen
wrote:
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.
Not quite sure how to explain this one, all I know is that a
triangle won't render and it probably has something to do with
bufferdata or one of it's inputs, since this is D I had to do
some roundabout things to get it work with a C library like
OpenGL so.. Yeah..
https://github.com/MinekoRox