When I use glDrawElements on a model with a really high polygon count, opengl lighting stops working. This doesn’t happen if I use glDrawArrays, or if I use vertex buffer objects.
http://people.umass.edu/eraboin/elements.jpg
http://people.umass.edu/eraboin/arrays.jpg
The left picture is with glDrawElements, the right is with glDrawArrays. This only happens if the model has more than ~1500 vertices, but that’s not really a stable number. I want to know what’s causing this so I can avoid it in my program… but I want to keep using glDrawElements, and provide support for cards that can’t use vertex buffer objects.