WebGL2RenderingContext should not extend WebGLRenderingContext
Author: zbynekCreated Dec 4, 2025Updated Mar 9, 2026
document.createElement("canvas").getContext("webgl2") instanceof WebGLRenderingContextis false, so I think these contexts should not extend each other.
Source: google/closure-compiler