Fixed a bug in the Quake map parser.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>
Fix some bugs in vertex generation code and in Vbo.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>