title: memory corruption inside glutMainLoop()?
body: <p>I'm having some trouble with VBO's with my project.
  note: The code worked perfectly before trying to use VBO's.</p>
  
  <p>Here's the error:
  <a href="http://pastebin.com/6x7YWtgc" rel="nofollow">http://pastebin.com/6x7YWtgc</a></p>
  
  <p>Here's the gdb backtrace:
  <a href="http://pastebin.com/zn3aN43b" rel="nofollow">http://pastebin.com/zn3aN43b</a></p>
  
  <p>My glut+glew initialization code and some relevant code and data structures:
  <a href="http://pastebin.com/xEEUc0ix" rel="nofollow">http://pastebin.com/xEEUc0ix</a></p>
  
  <p>ps: A valgrind output is enormous because of fglrx code.</p>