Our webgl games crashes "randomly" on machines with intel graphics. My theory is that there is a leak in the driver when clearing the stencil with a non 0xff bitmask. Here is what I found so far:
Description: The WebGL context is lost and not recovered again, when performing certain stencil buffer clears.
Hardware: The issue has been reported on a number of devices including desktops, NUCs and laptops. With the common factor being Intel graphics.
Software: Intel Drivers: 184.108.40.20680 - This version works 220.127.116.1136 - This and all versions after fail
Firefox - works
Chrome, Edge(chromium) - fails
Note 1: the issue only happens when using the default D3D11 rendering and not when using D3D9 (set using the flags) Note 2: the chrome behavior is the same with both the latest version and a 2 year old version (i.e. 2 year old version works with 8280 and fails with 8336)
How to repro: 1. Clear the stencil at least once per frame, with a non zero, non 0xff mask. 2. Let it run for 1-5 minutes 3. See that the context is lost and not recovered again