Intercept a couple of WebGL method calls.