Saves WebGL context state