Mikko Ronkainen Sat, 23 Nov 2013 14:45:46 -0800
Try moving glGenVertexArrays(1, &vao); glBindVertexArray(vao);
at the top.