I know that we can specify attributes for a WebGL context when we create the context:
var ctx = myCanvas.getContext(‘webgl’, attributes);
Is there a method that we can call to set the attributes of ctx after ctx has been created? For instance, can we do something akin to
var ctx = myCanvas.getContext(‘webgl’);
ctx.setAttributes(attributes);
That would require being able to change the attributes of a context. Which you're not allowed to do. They're fixed at context creation time.