Rendering now works. I was adding the vertices in the wrong order (not {anti-}clockwise)