I was wondering how people generally manage the state of vertex attribute arrays.
As I see it now it works as follows: Let's say that array 1 and 2 need to be enabled for shader A. If we then switch to shader B those arrays are still enabled. Is it then best practice to disable them if shader B doesn't need them?



