mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 20:01:50 +00:00

Particularly in CAD applications, it's common to call drawElements many times on small ranges of indices. This causes our naive maxVertId range cache to degenerate. In most cases, the index buffer won't actually contain any indices outside the associated VAO buffers' ranges. We should test first against this global upper-bound, only testing for an exact maxVertId for the subrange if the upper-bound test fails. Differential Revision: https://phabricator.services.mozilla.com/D2488 --HG-- extra : moz-landing-system : lando