WebGL context loss handling improvements.