Im having a problem getting Vertex Arrays working. When i compile the program, it compiles fine. When i run it i get a runtime error that says im trying to access memory from 0x00000000. When i try debugging it breaks at glDrawElements.
Right now I have the program just trying to draw a simple triangle to the screen. Im using SDL to do handle my window and opengl. Iv read an entire chapter from OpenGL Superbible about vertex arrays and I have looked at several samples that have all run without a problem. Here is my entire program. I have an extention header and a vec3d header but im sure the problem isnt in those, so this should suffice.
Ah, sorry, I somehow thought you were talking about glDrawRangeElements, which is in GL 1.2 and has to be loaded separately.
In this case my only bet is that you pass wrong pointers for indices and/or attribute arrays. Is it possible that you enable an array without binding an array pointer?