Fix bug in vertex attribute buffer setup

Bug was only showing on Tinel IGP.
Add function to print string version of OpenGL errors using
gluErrorString.