[Bug] Unhandled exception raised on glDrawElements on Windows
Error report - Windows unhandled exception on draw call
What
On Windows, when running the gltf-viewer project with the latest version of tutorial cheat (a26dfeb384895407c62a0682ad6c52957433b8e4) or even from the draw call (9924848506b45442e2ecc3e52f971ed5c7a41ee8) an exception will raise. If you ignore it the program does work, and nothing is catched by the OpenGl debug callback and even RenderDoc, but for many drawcall/frame it is annoying because it will always trigger a breakpoint on VSCode (even with "all exceptions" unticked).
How to reproduce
Compile the project from one of the commit presented above, and run from VSCode on the Sponza or Helmet. Tested on 2 Windows computers.
Capture
