(GL state machine) Reimplement caching of vertex attrib when compiling for non-shared
context mode