Q about glDrawRangeElements

GLuint ind[]={0, 1, 2, 3};
GLfloat vert[]={0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3};
glVertexPointer(3, GL_FLOAT, 0, vert);
glDrawRangeElements(GL_POINTS, 0, 1, 4, GL_UNSIGNED_INT, ind);

Shouldn’t the above code cause glGetError to return an error.
Notice that start = 0 and end = 1

The spec just says that end should not be smaller than start.

No, the indices are not validated. This code may result in undefined behavior, however, similar to passing a bad pointer into VertexPointer().

Are you sure about the indices not getting validated?

Sounded like Cass was saying they have to validate indices in another thread. It was about glDrawArrays or glDrawElements…

I also tried

start = 0
end= 4000000 (and other large numbers)

on ATI but it wasn’t crashing.
I guess it’s true that they ignore this extension.

The extension spec says that “Index values which lie outside the range will cause implementation-dependent results.” The spec doesn’t require the driver do any validation, but the hardware may. If you give an index out of the range you specify, it may work, it may crash, it may cause a police SWAT team to burst into your house and take you to jail. It’s all implementation-dependent.