cbecb8fc8e
If we determine that the 'end' parameter to glDrawElements() is out of bounds, clamp it to the max legal index value.