Quote:
An attribute table is used to identify areas of the mesh that need to be drawn with different textures, render states, materials, and so on. In addition, the application can use the attribute table to hide portions of a mesh by not drawing a given attribute identifier (AttribId) when drawing the frame.
Perhaps that particular code example relies on some attribute in the mesh. Have you tried using your own meshes?
To post code, use [source]source-code[/source] tags around it, as it's very hard to read now. It will look like this:
int asdf() { return 0;}