ssarangi's picture

Extra Triangle being rendered in VBO mode but not in immediate mode...

I am facing a weird rendering bug in which extra triangles are being rendered. Although, I think that there is some mistake in how I store the triangles I am unable to pinpoint where exactly the problem is.

However, when rendering in Immediate mode the rendering seems to be fine. So the problem occurs only when I use the VBO.

Right Mouse button - Pan

Left Mouse Button - Rotate

File Link:

Inline Images