Hi everyone,
I started doing project that uses OpenGL on Visual Studio and then I converted to Xcode. Everything works fine, except restart index. Primitives drawing doesn’t work as it works on Windows. In VS I used GL_PRIMITIVE_RESTART_FIXED_INDEX to draw many triangle strips in only one call of drawElements, and it worked fine. On Xcode I had to change to glPrimitiveRestart(0xFFFF), because OS X has OpenGL 4.1 which doesn’t have GL_PRIMITIVE_RESTART_FIXED_INDEX. And it doesn’t draw triangle strips as they are drawn with same code in VS. Triangles are constructed differently, totally messy. I thought that maybe orientation is different (order of vertex specifying for strip). Can that be problem?
As I said, I didn’t change code. I construct list of vertices with 0xFFFF element that separate distinct strips. Maybe I’m missing something.